Lucas di Grassi has moved to the top of the Formula E drivers standings after winning a dramatic Putrajaya ePrix