added demo_version parameter to Settings.yml and added functionality to prevent resetting token if demo version enabled