Basic user & sessions love.

Basic user and sessions via github.  Taken predominantly from 24pullrequests, with some truncations.