Added local.Mean operation.

Closes #481
Merge pull request #511 from lossyrob/localops/mean

Added local.Mean operation.