Quite rough around the edges, though.
Also make it possible to set session variables using PAM rather than Bash.