LPS-37553 Apply

LPS-37553 Consolidate logic

(cherry picked from commit 24fe303c058d8851f7bd1606c00ff82668471918)

LPS-37553 make sure facet implementations retrieve request parameters in their encoded form (only required by the generic impls)

(cherry picked from commit 6061e70e1b9fe168852af8f3dadf421d144067a8)

LPS-37553 replace all uses for the encoded id

LPS-37553 encode the field name in an ID safe fashion (only the / is a problem)