refactoring leaseserver into master/leaseserver, using flotilla