Modify the way subscriptions are stored
Some performance improvements, plus a bunch of old uncommitted changes

Make the code for checking for recent messages faster in the
common case (no new messages)

Old changes:

- Make O(1) instead of O(n) database round-trips to fetch zephyrs

- Fix bug in fake signature detection

- Logging

- Subscribe to subscriptions more quickly