Introduced support for cookie sessions; closes #169