Clean up indentation-code and speed it up considerably.

Closes https://github.com/josteink/wsd-mode/issues/5