various changes

Cherry picked the following from the master.
#1232: Send metadata abstract when publishing a layer to geoserver 
#1258: Healthcheck using wrong query for database healthcheck

Also added fix for duplicate html id tags causing problem with help.... Please cherry pick this change to master.