More changes to SearchState.
Fixed bug with OMD (mutex wasn't being locked properly).
Finally fixed DHT bug (problem was a long standing bug with SearchManager, not with SearchState).
Segfault fixed (hopefully) + tests.
Fixed some DHT tests.
Added 2 tests for double invocation of addAlternate(rh).
Merge branch 'dhtfix' (should fix segfault)
Refactored OMS (no longer using bitarrays).
Fixed memory leaks in EstablishmentState.
Fixed memory leaks in RouterInfo.
Merge branch 'memleaks'
Updated TODO.