Merge changes I2970d4ca,I6313d283

* changes:
  Script to periodically sort hits log & fetch top hosts with unit tests.
  Script to update host hits log with unit tests.