pass express app to plugins, closes #1789