Added setting pages and refactored cookie mgmt