LPS-45461 Move PortletPreferencesSettings to portal-service layer to be able to use it from DefaultConfigurationAction. Also change a call to XMLFormatter by its internal implementation because XMLFormatter is not available from portal-service layer. The called method is simple enough that there's no harm in copy-pasting it (it's the least bad solution).