Namespaces

I had a play around with adding namespaces to your class, and adding a composer file in there, (currently not on packagist) it does mean that it only now supports >= PHP 5.3.Hopefully this would mean that it is now a lot easier for people to use your API by just pulling the component down using composer.

I have tried to make the code in the class itself more PSR-1/2ish and generally have generally tidied it up in there a little bit.