Removed useless Shared Preferences.
Deleted "load server from preferences" function.
Code refactoring.