Allow cookie options to be set in config

Cookie options like domain, path, max_age, secure and httponly can now be set in config.yml