Namespace and gateway editing changed

Name space has finally been changed to CPlan. And the gateways are now
listed instead of statically in a class.