Added 'args' option to pass script args programatically

Also fixed a bug with how rawArgs was being parsed.
Merge pull request #591 from MeanwhileMedia/master

Added 'args' option to pass script args programatically