USERGRID-2623: fixed race condition where initial upload was occurring p...

...rior to getting configuration from server. This was causing us to not have some important data in some cases (such as app Id).