Allow output prompt to leave out numbers for qtconsole

This is motivated by this Spyder issue:

https://code.google.com/p/spyderlib/issues/detail?id=1923
I suspect we do all the HTML escaping for the notebook in the frontend, using JS. If not, we probably use standard library functions like this where possible.