Support new resource format with visualizer.

This commit fixes #96 and closes #31.
Merge pull request #107 from rampantmonkey/rmv-new-format

Support new resource format with visualizer.
Fixes for tests scripts on OSX.
Added command-line argument for CVMFS repository switching.
Don't set interactive_mode if executing a command passed as an argument.
Cleans up code and fixes some bugs. Adds test case.

This handles the Chirp side of issue #88.
Fix missing switch for "-c" option and add documentation for it.
Fix wrong size being specified in memset().
Correct fix for size in memset().
Fixed test case assumptions about order of results.

Added some comments.
Use compound expression.