Add Gatekeeper class for cli-server usage
Begin implementing tests for Gateway