Added namespaces and a composer.json

IMPORTANT
This breaks comp ability with PHP 5.2