Activates the line number ruler in the editor

Also introduces getNode and savePrefs methods, the existing code stills
needs to be rewriten to cover that.