added mongo backend and some filesystem code for storing the job files