Modify NetworkUtils class

- Use of AsyncTask class
- Read server configuration in SharedPreferences
Remove unused imports