Refactor some things in the server for docs (a sympathic learning exercice).