Added requireJS and commonJS support; fixed bower problem that was breaking the grunt build