some misc cleanups

This does some cleanups that I noticed while setting up the template
rendering API:

* get requires up to our latest convention
* structure view handler instance methods in a module
* make view handler helpers private, adjust tests appropriately

@jcredding ready for review.