Reduce server memory usage

We introduce lazyness so that the work bytes are used as a flyweight
More configurations for server hardening

Added timeouts for initalisation and authorisation, improves server
performance during restarts (only send further work updates once clients
reply).