Cleanup, JSONify and speed up tests

A bit of a big pull request.

* It changes \r to \n in requests (\r is still accepted, but "deprecated")
* Since albatoss is not hive specific, json is the only one that makes sense. That (somewhat) fixes #7
* I removed restarts of server between tests for the speed sake
* Also removed a bunch of sleeps from the code and lowered lock timeout to 0.1 (for tests only, by default it's still 10 seconds).
* Killed a bunch of pointers

It still takes 30 seconds for me (1 minute on codeship) to build the project, but that's an improvement over 2+ minutes.