wip! Refactor server and disable unused REST APIs