Deadlines query refactor as well as pagination
Merge branch 'master' of https://github.com/ucam-cl-dtg/urop-2013-dashboard