Attach origin link metadata to the state object

`state.data` now also contains an object named `origin` which contains
the URL and all the data attributes of the link triggering an event in
the first place.