fix for proper josm wms link format
add epsg 3857
Fix for srid constraints with newer postgis versions. And add epsg 3857