Started to work on topology abstraction.
Added more unit tests.
Changed mastership application to be synchronous.
15 files changed