Move RequireJS modules logic to main.js
Using custom livereload wrapper. Fixes #3