Base APIs to create LSP servers quickly. Reconfigures stdin and stdout upon importing to avoid accidental usage of the RPC channel. Changes stdin to a null file and stdout to stderr.