Initialising plugin in a more logical place to stop out of order excepti...

...ons when registering app.get