Merge pull request #122 from codalab/pliang

fix LocalMachine to use dict results
Ability to base64 encode images for codalab-site calls

will help resolve issue https://github.com/codalab/codalab/issues/562
add user when setting up a group.

resolves issue #126
support address with cl wls

resolve issue #96
Revamped permissions system.

- Put TODOs where we need to check permissions.
- Print out more meaningful error messages when don't have permissions.
- Simplify permissions to assume a total ordering: 0 (none), 1 (read), 2 (all).
- Add ability to get user info (including groups).
- Allow root to access everything.
- list_worksheets prints out owner and permissions.
- When printing out user/group information, print both the names and the ids.
- Root can list all groups and print out the owners of the groups.
- Switched 'root' user to 'codalab', since that's needed by the current OAuth
  setup anyway.
- Added documentation on permissions system.