Fixed huge bug in initial build script.

How did I not pick that up sooner?
Added log statement in verifySession().
When verifying session, save ID of current user in case it's needed.

It saves individual endpoint request methods needing their own code to
grab the user based off the supplied API key.

Also includes a bugfix in verifySession().