Hold/release message center from the activity

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Implementation of random round-robin for registration server selection

This closes #217.

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>