Fixed NPE when server is not configured.
Now load the server conf from xml instead of shared preferences and send the first command when server is loaded.