Update composer.json

- Add project type.
- Fix autoloader trailing slashes issue. See http://getcomposer.org/doc/04-schema.md#psr-0
- Add bin directory definition.