Fixes #15 Adding leadership selector to client and server. Tests pass