Tidy up (Part 2)

Pull message signing and verifying to a separate module.
Tidy up (Part 3)

Get rid of the web interface.
Tidy up (Part 4)

Remove recovery functionality.
Tidy up (Part 5)

Clean up some dependencies and unused code.