Region bug fixes and tests

Small bugs in ImageSensor and KNNClassifierRegion
Added some more tests including an end to end integration test.  Cleaned up some old terminology.

Fixes #1377