ctdb/tests/simple: Move the local daemons code to its own file