Document doesn't accept carriage returns.

Mmmonster diff
Replaced some error statements with warns as per #21
I think there's progress here on better patches.
Moved to content change for updates instead of using document listener.