Changed geoname_save_geoname() to add the possibility to create geonames of different types.
Changed geoname_create_division_reference() to allow linking of a division to its parent.
Added deprecated note.
Changed geoname_save_geoname() to allow the specification of properties and the building of division reference.
Changed geoname_create_division_reference() to use a cleaner division code.
Changed geoname_create_division_reference() to find division ID using geonames.org data, not by calculating it from division code.
Break geoname_create_division_reference() to prevent infinite loop.
Changed geoname_geoname_api_call() to use a static variable.
Existence check on variable.
Corrected call of reset() on function result.