Added automatic geolocation

Useful automatic geolocation on startup. If geolocation is not present `def_lat` and `def_lon` are still used.

If you want (or if you don't want automatic geolocation on startup) you can also add a button to get geolocation manually un-commenting line 337.