cta-dcache: move main function into dedicated file

3 jobs for test003 in 22 minutes and 17 seconds (queued for 6 seconds)
latest