Added proper routing tables and Chord-like routing.

Added some routing tests.