Cleaner, but slightly more complicated request protocol.
TODOs
Added support for notes.
Alphabetic sorting of notes and habits.
Better looking notes.
Separated requests and queries in the RPC protocol.
Added a query to get all statuses for the last 30 days.
Minor style change.