added object extend method to utils
refactored session lib to more common connect-session usage