Implement switching between different Rails-modules with updating corresponding routes lists.