Make api installable as a Composer module

Hey guys.
I've made some modifications to make it installable as a composer module, including namespaces and necessary files.
What do you thing about?