Implemented a basic cookie+store based session system.