Switch utility function calls -> namespaced calls
Better `getUnboundedScrollPosition` for windows

Instead of using browser sniffing, `getUnboundedScrollPosition` can do
better and not have to depend on the `getDocumentScrollElement` module.
[docs] Clarify when `getInitialState` is called.
improved whitespace collapsing rules

fixed line lengths, all under 80 except one slightly longer regex

cleaned up the code a bit
added explanation of the rules and annotated the regexps
removed \xA0 from being treated as regular whitespace (or should it?)

moved helper function outside of renderXJSLiteral

updated "S \n S" rule to produce "S\nS" instead
.