Support for update/delete and better connection handling

- ensuring methods called from cursors use same connection
- methods for insert/update
Some geopackage tweaks for editing.

- handling null geometries and attributes
- skipping null feature properties on import
cleaning up main, adding options for data dir and root dir