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
Merge pull request #149 from redding/kr-cleanups

some misc cleanups