Refactor mouse reporting to reduce duplicate code and hopefully make its behavior more consistent.
Merge branch 'master' of https://github.com/gnachman/iTerm2