Adds hydra.runapplescript(); closes #322.