Updated implementation to use node-osm-stream (a streaming .osm parser).
Updated CLI tool to check validity of JSON file after writing file if mode=json.