Misc changes
Move REST api for jobs and files to routes/api.js