Add sort indicator to table headers

Currently, it is not possible to know which column determines the sort
order for the table. This patch adds a directional indicator that let
users know which column(s) is being sorted and the direction of the
sort.

known issue: because sorting indicator is a background image, it will
appear below column name if the name is too long.

Change-Id: If7194728d4335a04e9e8a7becd0086e2d3dc4b67
Closes-Bug: #1279578
Enable passing additional parameter to metering query

Make the additional_query variable parameter of the query_data function,
so that we can pass additional query options to this function.

Change-Id: I23032803f08c2e2c1d5946f4ce8415c7c72c87f0
Merge "Add sort indicator to table headers"
Merge "Enable passing additional parameter to metering query"