Cleanup the web frontend and how RelaySwitches are instantiated