more refactoring of job processing code.
tweaked .gitignore to ignore more stuff.