IDEA-111701 Emacs: pressing Ctrl+k several times should add lines to muti-line buffer

Caused by caret movement on each documentChanged event (sometimes to the same position as before). This movement needed for the proper Formatter, SoftWrap etc. work.
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'origin/master'

Conflicts:
	platform/platform-impl/src/com/intellij/openapi/editor/impl/CaretModelImpl.java
	platform/platform-tests/testSrc/com/intellij/openapi/editor/actions/KillToWordEndActionTest.java
Merge remote-tracking branch 'origin/master'
fixed PY-11428 "Variable in function should be lowercase" false positive for variables declared global
IDEA-110055 Code Style: Copy to Project: Arrangement settings are not copied (copy empty grouping rules)
Merge remote-tracking branch 'origin/master'
IDEA-119663 false positive Constant conditions & exceptions: "Argument ... might be null"
fix grails tests
IDEA-118759: Run ant headless so no dock icon will appear
(https://github.com/JetBrains/intellij-community/pull/131 manually merged and improved)