Put Decoration.register_hook in place again due to libraries using it but add a deprecation warning
A bit of move around of setup_tg_wsgi_app parts to cleanup roles of each component