Namespaces and proper composer.json

Added Namespaces and a proper composer.json which works with
packagist.org.