Only require express if an app is being used.

If we're using only the helpers, and we don't pass an app, then we shouldn't need to require express. That should allow these helpers to be used without Express.