Change interface checkRefToMessage()

To differentiate between, a message is found locally, remotely or not
at all, the boolean is no longer sufficient for this method. Therefore
I've changed the interface from a boolean into an int by which the
possible values returned by checkRefToMessage() are defined as private
static final ints, global constants.