Added mouse support

3D view now has somewhat functional mouse support.