Webfrontend errorhandler

This contains a skeleton for a new way the webfrontend handles error. Use this skeleton instead.
To continue work, I will create several issues.