Started rewriting server endpoints to check if master/client and reject requests appropriately.