Added support for set_session

Now one can specifiy a set of commands to execute when
connection is established.
The commands are executed as a single transaction block.

TBD: Handle exceptions caused by set session commands.
     We probably want to distinguish between connection related errors
	 and errors caused by incorrect SQL.