Refactoring for new message message queue integration

* Refactoring for new message message queue integration
* Remove unnecessry FLOW3 application implementation
* Remove dependeny to client, add dependency to protocol
* Add thread lock/unlock handling to persistence container
* Refactoring and documentation
* Refactoring to work with new webserver funcitionality