Added preferences for controlling margin display.
Added statusbar module. Fixes #39