CLC-4229-1 - /act_as endpoint should only allow uid's that are valid

https://jira.ets.berkeley.edu/jira/browse/CLC-4229
@christianv Yes, the function has to return true if act_as_uid passes all checks.