initial implementation of http connection setup

some changes on settings to use ble and/or internet, just an idea,
maybe not important and is not used until now

improved computing of location with precision