added edit feature to gdal sources and more client source tests

After some rebase madness, I just deleted the old `edit_layername` branch and created a new one with the changes. 

/cc @yhahn