sessionmanager: Prototype.
sessionmanager: Complete the implementation.
state: Fix thread safety, add get method.

(To get state of elevator by id.)