Add unit test for reading the writing SQLite. Includes fix to sorting when using database based drivers that pass SQL straight through and thus dont have access to FID which is OGR SQL. Also adds LayerGetFIDColumnName to the OGR interface.
Merge pull request #335 from jericks/ogr_4

Add unit test for reading the writing SQLite. Fixes JIRA issue GEOT-4653