Fix memory leaks
Fix performance problem in drawRect hook.
Old:
 - Update all search results(array of NSRange) when text/settings are changed
 - add attribut for color for hlsearch in visible rect on demand (on each drawRect) based on the search results
 - then draw
Now:
 - Update all search results and add attribute for color at the same time( for all the range of the text )
 - then draw on each drawRect

The difference is that now we only once call addTemporaryAttribute metho for the layout manager.
Only when text/settings are changed we again call addTemproraryAttributes for all the search results.
Merge branch 'Xcode5Support' of https://github.com/JugglerShu/XVim into Xcode5Support

* 'Xcode5Support' of https://github.com/JugglerShu/XVim:
  As per #457 fix percent motion. A bug that % at end of line leads crash was also fixed
  Fix errors in script editor in build phase editor. Fix #366
  Add test cases and fix FeatureList.md for Ctrl-y, Ctrl-e in insert mode
  Change default debugging application

Conflicts:
	XVim.xcodeproj/xcshareddata/xcschemes/XVim.xcscheme