implement Localops with unit tests

Not ready to go yet.
For #478 (Implement LocalCalculation operations)