'Add message and return assigned key.'

def add(self, message):

    self._lookup()
    self._toc[self._next_key] = self._append_message(message)
    self._next_key += 1
    self._pending_sync = True
    return (self._next_key - 1)
