Cleaned all of the formatting funk

I made no logic changes, just formatting changes. You would want to ignore whitespace changes when diffing if you want to validate that. All of the tests are passing, which should be obvious since I didn't change any logic, just formatting.

**Specifically**

* 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 and this allows for...
* Added postinstall and postupdate scripts to package.json that run bower after install or update. This makes setup a single command: npm install.