Refactor our helpers and add tests.

In order to test Sinatra helpers, you have to create a module. Sinatra
uses anonymous modules when you use the shorthand helpers method, which
makes testability almost impossible. This breaks out helpers into
multiple modules and adds appropriate testing.