Integrate new Temporal Memory with OPF

Fixes #1198

Original PR: https://github.com/numenta/nupic/pull/1199