ctdb-logging: Move controls handling functions from common to server