implemented create session API

Signed-off-by: Ashwin S <ashwin.s@webyog.com>