Make changes needed to make unit testing possible

When initially trying to run unit tests on Peachy there was an issue with the use of the global $http as phpunit would destruct it!!
Thus I have removed the global in favour of accessing the http class through a sort of singleton method (only sort of due to the need for $echo to be true of false).

I also added a single unit test! heh....
And poked other stuff!