[IMP] view: add state into params for actions
[MERGE] Add state into params for action; forward ported from branch initially planned for 7.0
[MERGE] Sync with trunk
[MERGE] [IMP] mail: improved management of links in notification emails.

This branch adds the URL parameters in context.params.