Fixes Issue 30[complete] and Fixes Issue 11[WIP] - locked clients, client-to-server server-side testing

Might be worth also having a default value here, in the case that they don't provide one in the env.