Some important bugfixes for webapp

...but it runs now, including interaction with message broker and
deeper!