moved xenoarchaeology master controller code into a separate file

Signed-off-by: Cael Aislinn <cael_aislinn@yahoo.com.au>
(cherry picked from commit f3ab8b0748cd0da083af9e8a59475f9eafe86b44)