Add r.js optimizer, improve livereload and update modules