Backports functools.total_ordering.
Fixes Resolver to use global cache.
Changes all IOLoop.instance() to IOLoop.current().
Adds more debug statements.
Ensures unit test http server is fully started up.
Fixes Resolver to properly cache empty results.
Increases unit test timeout to 30 to account for resolver delay.