Added config.secret_key_base and better sentende monkey patch.