Session API and RDoc fixes.