Refactored build process

This separates the javascript files and adds a minify step. 
requires uglifyjs.
Also adds a jshintrc that declares a global pebble object and global firebase object because these will be present at runtime.