Job items and files

Please review these changes, essentially adding JobItems to the model and objectId to JobFiles. There are also  some changes to fix tests failing on travis.

Thanks,
Snezana