Implemented the cookie read/write infrastructure for user name and role. Closes #7, closes #16, closes #17