Initial commit of Session API code.