start of a previewer, new codemirror functions, start to choose between tabs and spaces, bugfixes