LPS-43574 PortletSettings

I'm being less ambitious this time, sending you only the 4 most important commits. I will send the rest as separate LPS tickets.