Refactored Temporal Memory tests into benchmarking framework

Start on #1143.

Requesting cursory review: @scottpurdy