Refactor duplicate browser specific code into general function.
Clean up the caret marker after setting caret position. Reflects in tests.
Merge branch 'issue_430' of github.com:mightyiam/wymeditor into issue_430

Conflicts:
	src/wymeditor/editor/base.js

Made a git mistake here. Trying to fix.