Mock scimoz: define docLineFromVisible and visibleFromDocLine; make sure getLineEndPosition can handle \r

(integrated from komodo (trunk) change 82067 by ericp)

git-svn-id: http://svn.openkomodo.com/repos/openkomodo/trunk@13661 b87d16e7-d29f-4ee1-b5ec-817d645d335f
Fix typo

(integrated from komodo (trunk) change 82068 by ericp)

git-svn-id: http://svn.openkomodo.com/repos/openkomodo/trunk@13662 b87d16e7-d29f-4ee1-b5ec-817d645d335f