Lot of improvements of search engine, geocoding functions and some security fixes