Added licensing, composer.json and reorganized the library to be more consistent with psr0.