Fixes #24 tabs are inserted instead of spaces

* the preference store wasn't being properly set on the source viewer
configuration
* some other random cleanup