Fixed getHtml and expose newLine

I accidentally broke getHtml (missing return). In addition, I'm providing a useful way to listen externally to the creation of new lines (enables us for instance on new line to look if the previous one contains X, and then put X again at the beginning of the new one => custom list types without touching Firepad // that's just an example of how it can be combined with entities)