[IMPORTANT!!: This relys on #1077 to be merged.] Do not register hooks and eventhandlers twice, closes #727, closes #484.

## Important: This relys on #1077 to be merged.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | --
| Fixed tickets | #727, #484
| License       | MIT
| Doc PR        | --