Gatekeeper server code

This is the basic gatekeeper server code.  

@kentquirk @jh-bate I'd like to get you guys to look over the mongo and http interactions while I'm doing the final wiring.  If everyone agrees to this, I might be able to actually integrate it before the end of the week and avoid an annoying migration...