SYNOPSIS
This sets up an authentication session for iteratively accessing documents in LedgerSMB. A user should post a login document to /Session/userid, and upon success, they will receive a cookie which they can use to further access other resources.