CLC-1594 Log app accesses; fix bug in stop_act_as

JIRA: https://jira.media.berkeley.edu/jira/browse/CLC-1594

stop_act_as wasn't setting the original user ID to nil -- something I picked up when I saw the access log.