Add "test connection" to settings screen

Added test connection to settings screen
Autodetect mac address if not entered
Improved error handling for HTTP client

fixes #44 #12