Refactoring promise use with express.

Added utility function to adapt promise returning functions that take
req, res to the express middleware form. Automates calling next
and passing errors on so that I don't have to manually route errors
in every function.