Add 'yarn rmadmin -refreshQueues' and better error handling

Cleaned up error handling when calling shell commands; now it fails
after a step fails and prints out informative messages.
Add a bunch of API documentation.
Merge branch 'refresh-queues' into dev