docs: update CONTRIBUTING.MD with process for doc fixes
chore(travis): ignore 404 warnings, debug log into file

This is a terrible hack/workaround, however I don't think there is any better way to achieve this
with log4js.
chore(travis): increase BrowserStack timeout to 10min

Because IE is retarded.
fix($sanitize): don't rely on YARR regex engine executing immediately

In Safari 7 (and other browsers potentially using the latest YARR JIT library)
regular expressions are not always executed immediately that they are called.
The regex is only evaluated (lazily) when you first access properties on the `matches`
result object returned from the regex call.

In the case of `decodeEntities()`, we were updating this returned object, `parts[0] = ''`,
before accessing it, `if (parts[2])', and so our change was overwritten by the result
of executing the regex.

The solution here is not to modify the match result object at all. We only need to make use
of the three match results directly in code.

Developers should be aware, in the future, when using regex, to read from the result object
before making modifications to it.

There is no additional test committed here, because when run against Safari 7, this
bug caused numerous specs to fail, which are all fixed by this commit.

Closes #5193
Closes #5192
Merge remote-tracking branch 'upstream/master' into ensureSafeObject