Created SessionSpec and added better timeout functionality and bug fixes to sessions.