More work on Master Mode. Implemented sessions and user timeout mechanism. Closes #14.