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.
See last task item in PR :)