Add sorting options for the main list.

This code needs to be put into a function, but this will work
for the time being.
Hacky first draft of pagination.

Use GET parameters to page through results. Still need to build out
the links for pagination.
Simple implementation of pagination.
Make pagination work with long lists.
Make pagination display simpler.