style(code style): fix style to clearly separate code from dependencies
refactor(module): encapsulate app in a function and expose a simple API

Module is now accessible in `index.js` which is the main point entry
for the module.
/!\ Can't be name `module` as it conflicts with RequireJS own module.
chore(docs): ignore docs directory