Add RefreshOnLogon functionality.

Add the missing calls to refresh the MessageStore if RefreshOnLogon config option
has been specfiied.