Session connect method implemented, moved stubs to separate file