Adding flag parsing, Part 1
.
.
.
Added session management infrastructure