Merge branch 'jay_dev' into dev
Commits up to Pagination Renew and Column Nth element not showing. fix.
Small changes due to Dave T

SEarch for who I've seen in the last n days.

Allow white space after some searches
Tidy up pagination
Merge branch 'jay_dev' into dev
Remove extra permission number recipient
Refactoring the Query code...
-- Adding comments
-- Moving some database stuff from the mapper to models.Query
-- Make some stuff private