Remove duplicate code
Conditionally (correctly) set THINKUP_ROOT_PATH
[DB MIGRATION REQ'D] Add ability to establish user session via private API key (optionally set/enabled)