Improve gateways dropped backwards compatibility. Fixes #236.

Keep a snapshot of current gateways to provide readonly api views
to keep backwards compatibility with old CNS.