hit testing for patches

Initial checkin has spatial indexing, needs point in poly test added to finish. Fixes #931