Support new resource format with visualizer.

Fixes #96 and closes #31.