Clean up.

Fixed coding style
Fixed small glitches
More modularization
Made canvas adjust the position for the selected element
Removed unnecesary includes
	modified:   libmscore/navigate.cpp
	modified:   libmscore/segment.cpp
	modified:   mscore/scoreview.cpp