Pass options to app middleware as optional 2nd argument.

This change adds a 2nd optional parameter that passes options to `server/index.js` when a custom server is present.

This allows the server to access the same properties like watcher that are exposed to addon middleware.