Store in the permalink only modified element

Applied on layertree layer and group, needed to make the private group
visible after a login.

Tested on http://mapfish-geoportal.demo-camptocamp.com/sbrunner-demo/wsgi/theme/Équipement

@ochriste can you review it ?