FARCOS: a versatile and modular Femtoscopy Array for Correlations and Spectroscopy