Added smarter logic to the message store to set the status of a transaction

Closes #93