Rough version of cmdproc.js without Task.jsm.