Add trends, other global goodies

This turned into a bit larger of a pull request than I'd hoped because there's a few infrastructure pieces (layout, real tests) that got bundled in here. 

TODO:
[ ] Test the function that spits back counts
[ ] High-level end-to-end testing (not sure of what form)
[ ] Make sure the address page 404s rather than erroring if there is none
[ ] PEP8-ify everything