[PD-701] Added per page options and sorting to contact records

Also did a bit of refactoring and made sort by activity and date behave properly.
with the work done in #923 a lot of parameters we were using became obsolete, along with possible values returned. I think undefined was caused by javascript errors and all was passed in for date, which we no longer use (note I didn't say date_start or date_end).