Cleaned up build system

- Switched away from hacked grunt build to cjs-umd
- Now use a local version of bower (should probably get away from bower
  completely, and run tests with the CJS version of the lib)
- Removed some cruft from the dependencies