z-ordering and mouse cam controls

Implemented z-ordering (and layers) via merge sort, plus some
rudimentary mouse-based camera controls