Preparations for communication between back and-front end

Also an EmmaPHP bugfix