support external dependencies via cli
fix accidental references to the global 'root' in capsule.js
use vms for capsule.js's tests
add a basic example
use the right global context for commonjs environments
slightly better readme