Generalize creation of express app.

And hide some of the grosser bits.
Merge pull request #1 from robzuber/express-macros

Generalize creation of express app.