This MR introduces marginalisation over phase and distance. Currently, time marginalisation doesn't work.
@paul-lasky @gregory.ashton @rory-smith