Fix for issue #12 where lineFold states were being corrupted across documents which resulted in very inconsistent folding when switching between code editors

Line folds are now persisted when active editor is switched and just before project or app is closed.
Now use brackets FileUtils for getting document extension.
swapped editors scroll event for code mirrors viewportChange event