CLC-4230 - Accept either UID or SID in the View As field

https://jira.ets.berkeley.edu/jira/browse/CLC-4230
Previous unmerged PR was #3058.

Only UIDs are stored in localStorage, but the full LDAP user objects will be accessible from memory, so there will still be access to SID, first name, etc. This should suffice until we get a back-end implementation.

![image](https://cloud.githubusercontent.com/assets/1585925/4673264/fa852426-559f-11e4-9f76-d7ae65ae8352.png)

@edwlook we don't need this extra optimization on for loops, please use a regular one, here and everywhere else.

```
for (var i = 0; i < userPool[key].length; i++) {
```