Replace TreeRoutingTable with OptimizedTreeRoutingTable.

* Update docstrings.
* Drop setting of `failedRPC` attribute in contacts.
* Groom code style a bit.
* Update tests.