Refactor parent selection routine.
Use dirty trick to snap pose bone to an object. Rotation and scale ignored for now.
Restore cursor position in bone snapping function.