Added module definitions and package.json/bower.json

This wraps up the code ready for release to npm/bower, this resolves #29.