option for switching to beaker sessions

introduced beaker sessions and switching between session factories.