Pass options to app middleware as optional 2nd argument.
Merge pull request #1648 from chriseldredge/server-options

Pass options to app middleware as optional 2nd argument.