feat(cockpit-incidents): Add support of incidents

- the cockpit plugins uses the incident infrastructe to show
  whether a process instance/definition failed or not
- refactor the process instance query including pagination and incidents
- add testcases for process instance query

related to CAM-706
Merge branch 'master' of github.com:camunda/camunda-bpm-platform