Functional tests

Fixes #25.

- [x] Setup intern
- [x] Test unauthenticated index
- [x] Test sign in
- [x] Create mock device that responds to commands
- [x] Bootstrapping script (Phony bootstraps itself by inserting records into the db)
- [x] Test ring
- [x] Test lock
- [x] Test erase
- [x] Extract constants
- [x] Add tests/* directory to JSHint/JSCS Grunt paths
- [x] ~~Attempt to make tests DRYer with `before` and `after` functions.~~ (optimization for follow up PR)
`$ grunt lint` doesnt like this:

```sh
  line 15  col 7   'NOTIFIER_SLEEP_TIME' is defined but never used.
```