fixed several issues related to message priorities

this patch fixes several bugs that are related to the recently added
support for priorities; it also refactors the remote actors unit test
and improves logging