Add Google PHP Client Library

Adding Google PHP Client Library. Although this is not used as of now,
it will be used going ahead.
Move log-in functions to separate Javascript

Move all the log-in related functions to a separate JavaScript.