Remove obsolete sorting stuff
Make "all expenses" code generic so it can be reused everywhere

This moves the table and the datatables javascript code into template tags, and
also factores out most of the query_all view into a separate helper function that
other query views will be able to use - it only takes a columns list of tuples
with column names and types.
Make supplier detail reuse the all expenses generic code
Make legislator detail reuse the all expenses generic code