Implemented gate addition at client and server sides.
Implemented config save at server side.