Fixed session reset/close, added tests, removed geddy global from session lib