Updated such that messages are heap-allocated.

  NOTE: This makes a big memory leak each time the subset of
 messages changes.

  This is a transition as I rework the code as per issue #3.