Namespacing, Composer and PHPUnit

Hi @shuber,


I've made this changes in order to follow the current PHP standards, may be you consider them useful:

+ add namespaces
+ switch to composer
+ switch to phpunit