Cleaned all of the formatting funk

* Cleaned up formatting: indentation, spacing, and conditionals using
curly brackets for both the src and test file.
* Added bower to package.json dev dependencies as it is a dev
requirement.
* Added postinstall and postupdate scripts to package.json that run
bower after install or update. This makes setup a single command: npm
install.