[CS] Split events and routes out of config file

Separates responsibilities and clutter. Backward compatibility is ensured. See #429