events_to_dict() assumes events are in sorted order.
coerce event mktime-type fields to integers
include memo in JSON output
better error check of geonameid