Added bower and RequireJS config. Fixed few bugs.