Rainbow Connection of Sparse Random Graphs