Added support for read-only mode, where the text editor locks any edits if the user does not have permission to edit a file.
Locked icon was moved to lower left corner, consistent with other apps.
Fixed a bug that was creating a memory leak. The Text Editor View Controller was not correctly autoreleased after being created.