Initialise the console after all middleware

Closes #39
Merge pull request #43 from blakeembrey/console

Initialise the console after all middleware