CAS mouse controller refactored to support touch (mainly for selection).

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@37208 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e
Fixing problem (and another exception) described in http://forum.geogebra.org/viewtopic.php?f=8&t=37256

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@37209 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e