Requirejs

This PR aims at:
1. creating packages with bower.json;
2. adding requirejs;
3. creating the js and template modules.