Merge pull request #10 from robinweston/master

Tidied up app.js
created custom module
Added app.js flow
Merged from upstream