Place all the functions in background page in an object.
Fix changing highlighting mode on file rename.
Add a comment.
When autosave is turned on and a tab is closed, save the tab contents.

Issue #10
Upon closing the window, save the files in background page. [Still needs work.]

Issue #10.