Finally logging onto server.

Fixed some crap. Switched to XML. I got no idea how use JSON.