Refactoring and bower inclusion
Merge branch 'master' into gh-pages