Modify NetworkUtils class

- Use of AsyncTask class
- Read server configuration in SharedPreferences