Added proper tab handling in CodeMirror

fixes #145 

^ This has to be in the description, apparently.