Login user and respond with JSON along with auth cookie.
Merge branch '7.x-1.x' into 69