Clean up pan function and add MultiInput class
Controls must define center_pos, which is then used in update_center
Multi-input datums now work
Save and restore cursor position when editing datum expressions