Move response helpers into server module
Add response as second argument when calling apps

This change replaces the mach.* helper methods with a response
argument that is passed through to apps when they are called.

Fixes #29