Initial cleanup.

- Pings now track their timezone
- The tag graph is now ordered
- Various code cleanups performed.