Changed all references to "smyth" in API to "ref", to mirror Grammar model.

Also renamed base_task.js to just base.js. Started working on integrating submissions from tasks.