Titles of multiline requests get truncated

CORE-693

Mustache helper to truncate arbitrary strings to length N, or just the first line by default.
these two lines should be just
```javascript
str = str.substr(0, str.lastIndexOf(' ',len));
```
because the current code clips the last word if it ended at len. If that was the intended functionality then the if statement should be if (str.length >= len)