wms-viewer: added SCALES and DPI parameters into permalink, moved permalink code below code for adding vector points into map