Add flask to setup.py extras.
Close file when extracting version, in setup.py.
Document how to install extras.
Support sessions, refactor as needed.

Add reference session implementation using SQLAlchemy.
Note that any session implementation can use current session_uid support.