Escape line-feeds too in escapeXMLEntities otherwise breaks when title contains a \n (bug #1229)
Post the link to the widgetsUI view rather than the csw/xml view for <metadataLink> (#1227)
Create StringEntityRequest with the proper contentType and encoding (#1231)

This fixes POST/PUT'ing layers with accentued titles/abstract.
Bug #1227, createFeatureType part: Also create a TC211 metadataLink when posting to geoserver

That way, the metadataURL is also in WMS 1.1.1 getCapabilities
Merge pull request #79 from landryb/bug-1227-1229-1231-improve-geopublishing

Bug 1227 1229 1231 improve geopublishing