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.
Fix #48 and add some convenience functionality

* Fixed issue #48 and added tests for exercising behaviors in different
scenarios.
* Encapsulated _ecommerceEnabled and _enhancedEcommerceEnabled to reduce
copy-paste code in several functions. Added tests to validate behaviors
in appropriate scenarios.
* Removed a duplicate test.
* Made some additional formatting fixes to make style consistent.
Merge pull request #47 from justinsa/master

Cleaned all of the formatting funk