Refactored SortInfo into Listing model.

Added a 'total' count to listing responses.