Fix missing .prj file in shapefile format

Finds srid, when needed, with an additional query.
Closes #110.
Includes testcases.