Set/get multiple style ranges at once.
Use setStyleSpans in JavaKeywords demo.
Minor refactoring.
Fix caret on an empty line in non-wrapping area.

Workarounds https://javafx-jira.kenai.com/browse/RT-35506.
Get line count and current line index from the underlying PrismTextLayout.