feat(engine): add exception type to error code
- first, implemented for service task with a java delegate

related to CAM-1035
Merge remote-tracking branch 'upstream/master' into CAM-1035-ExceptionType
feat(engine): add some code for exception type to error code
- add implementation for script task, multiinstance and service task
  expression/delegate expression
- adjust test cases for the new feature

related to CAM-1035
feat(angular-resource): patch resource to add promise support

Resources generated via $resourceFactory offer a $promise variable
now. That variable may be used to return a promise that is evaluated
with the loaded resource once loading is finished.

It allows us to perform things like

somePromise.then(function() {
  return MyResource.query({ id: 'foo' }).$promise;
});
feat(bpmn): add possibility to define calledElement in callActivity with
more details
- add new attributes to callActivity to define processdefinition version
  and process binding
- add new prepared query to get process definition for process definition key and
  deployment id
- add new test cases

related to CAM-948
Merge branch 'master' of github.com:camunda/camunda-bpm-platform
feat(engine/rest): Add job query for no retries left
- add query to rest api
- adjust existing testcases for this query

related to CAM-358
Merge branch 'master' of github.com:camunda/camunda-bpm-platform
Merge branch 'CAM-948-CallActivity' of git://github.com/polenz/camunda-bpm-platform into merge
fix(upgrade-qa): remove business key test because fails in upgrade db qa
refactor(engine): Improve logging for MBeanDeploymentSteps
Merge branch 'CAM-1035-ExceptionType' of https://github.com/polenz/camunda-bpm-platform into polenz-CAM-1035-ExceptionType
feat(engine): major overhaul of history

- add event stream oriented API
- make it possible to exchange history event consumers in order to plug
  alternative backends
- move from INSERT + (SELECT+UPDATE)* to INSERT + UPDATE* scheme
- update only columns that change
- updates to HistoricActivityInstance table now leverage Primary Key
  instead of 3-column composite index
- add possibility to make history asynchronous (feature not included but
  now possible to build)
- add parent activity instance ID cloumn to historic activity instance table,
  making it possible to extract activity instance tree from History (API
  not exposed yet)

related to #CAM-1092
chore(test): deactivate mybatis logging again
chore(datadepend): Use lib in process instance

-related to CAM-1050
chore(merge): merge from upstream
fix(process-diagram): re-integrate into procDefView
chore(processInstance): Adjust controller

related to CAM-1050
fix(cockpit.processDiagram): delay selection if data not ready
feat(cockpit.procDef): add process instance filter

Closes CAM-1061, CAM-911, CAM-784