Fixed bug with setupFeatureSystem

Previous code tried to do it once at startup but since the application object
only gets created on request the setupFeatureSystem call crashed the server.
We now do it per connection.