Moving selection methods into the new NSTextView+EditSelectionWithUndo category. 

Also adding a new category for programmatically editing plain text into an NSTextView.
Project changes necessary for Xcode 4.4.1 support.
Adding missing imports.
Project updated by Xcode 4.6.