fix sorting as mentioned in #33, #113 and #131
fix redirect to /active
Fixed issue preventing polling for new jobs. Closes #192