Last refactoring before project externalisation.

Imported from ymeine/editors-tools (https://github.com/ymeine/editors-tools/tree/59c05b4205feec0f6ca660b8347e4fb135536862/ultimate-poc/resources/app/node_modules/std/server).