WorkerSession implementation

WorkerSession entity and part of the factory and storage. Many items
annotated in classes as TODO.