fix jersey servlet support (#1448)
fix jersey servlet support (#1448)

If the jersey modules are initiated on the same level as the ones that
registered the ServletContainer class, this could lead to errors using
asyncrhonous processing:
javax.servlet.ServletException: java.lang.UnsupportedOperationException:
Asynchronous processing not supported on Servlet 2.x container.

See e.g.
https://gist.github.com/maggu2810/ef57c2656fa9f76052042da5f70d9d2f

This could be worked around to start the Jersey components in front of
the usage.
The important module is jersey-core-server, that adds support for
servlet 3.x.

Signed-off-by: Markus Rathgeb <47d2fc6e26021cffb3672b45140ae29e1dd014a0@gmail.com>
neverend92/smarthome,chrisschauer/smarthome,kgoderis/smarthome,neverend92/smarthome,plamen-peev/smarthome,BenediktNiehues/smarthome,BenediktNiehues/smarthome,sja/smarthome,kceiw/smarthome,S0urceror/smarthome,Stratehm/smarthome,chrisschauer/smarthome,Mixajlo/smarthome,vkolotov/smarthome,dvanherbergen/smarthome,Snickermicker/smarthome,plamen-peev/smarthome,resetnow/smarthome,kgoderis/smarthome,Stratehm/smarthome,plamen-peev/smarthome,philomatic/smarthome,chaton78/smarthome,vkolotov/smarthome,AchimHentschel/smarthome,marinmitev/smarthome,marinmitev/smarthome,plamen-peev/smarthome,Mixajlo/smarthome,neverend92/smarthome,chaton78/smarthome,neverend92/smarthome,Mixajlo/smarthome,ArchibaldLeMagnifique/smarthome,Snickermicker/smarthome,CrackerStealth/smarthome,S0urceror/smarthome,chrisschauer/smarthome,dvanherbergen/smarthome,kgoderis/smarthome,ArchibaldLeMagnifique/smarthome,CrackerStealth/smarthome,cdjackson/smarthome,Snickermicker/smarthome,Stratehm/smarthome,chaton78/smarthome,dvanherbergen/smarthome,phxql/smarthome,kdavis-mozilla/smarthome,phxql/smarthome,kceiw/smarthome,philomatic/smarthome,cdjackson/smarthome,adimova/smarthome,phxql/smarthome,kgoderis/smarthome,CrackerStealth/smarthome,adimova/smarthome,Mixajlo/smarthome,ArchibaldLeMagnifique/smarthome,vkolotov/smarthome,sja/smarthome,S0urceror/smarthome,cdjackson/smarthome,dvanherbergen/smarthome,sja/smarthome,philomatic/smarthome,vkolotov/smarthome,kceiw/smarthome,AchimHentschel/smarthome,adimova/smarthome,BenediktNiehues/smarthome,resetnow/smarthome,CrackerStealth/smarthome,kceiw/smarthome,marinmitev/smarthome,BenediktNiehues/smarthome,AchimHentschel/smarthome,cdjackson/smarthome,sja/smarthome,AchimHentschel/smarthome,resetnow/smarthome,marinmitev/smarthome,philomatic/smarthome,resetnow/smarthome,kdavis-mozilla/smarthome,kdavis-mozilla/smarthome,chaton78/smarthome,Snickermicker/smarthome,chrisschauer/smarthome,Stratehm/smarthome,adimova/smarthome,kdavis-mozilla/smarthome,phxql/smarthome,S0urceror/smarthome