Copy REST API config

This patch copies config for REST API when create new server by copying
existing server.

Fix for JENKINS-23189