Recent fixes in worker and appserver

Better error handling, removing outdated code
Fixes in web client

Alignment, error handling
Documentation fixes