Additions to model.py.

Added partial implementations for get_server_chokers() and get_memory_hogs(). Also simplify codes for query_time_per_request().