Replaced OpenLayers AJAX methods by own functions, repaired geolocation API