WIP: Functional tests

- [x] Setup intern
- [x] Test unauthenticated index
- [x] Test sign in
- [ ] Create mock device that responds to commands
- [ ] Bootstrapping script
- [ ] Test ring
- [ ] Test lock
- [ ] Test erase
- [ ] Extract constants.
Oh yes you can get some copyrights. I'll get those in there on the next commit.