added usertoJson method and added test
changed the service call url for all messages for user in MsgService