yet another refactor, but good

Server runs and loads data once from CTS. API end points need be fixed.