More flexible final file writing

I've made some minor changes in order to directly feed the json objects to elasticsearch (this code is not included). No need for me for intermediate files 'osm-pois.gz' and 'osm-ways.gz'. This reduces storage capacity and also overall time of the feeding&preparation step