Changing mobile api url to be in global scope also to use host insted of ip