accept type argument for createjob
auto save new cron job
Merge pull request #305 from tjwebb/createjob-fix

fixes for lib.createJob