Added logging in

Moved logging in to its own activity and actually implemented logging in
with a name for the new system. Also I added ping/pong in to test
authentication as well as serving a purpose for later keep-alive
connections.