added ability to use composer

added a basic composer.json file and namespaces on main classes