Optimize CdiTaskListener to get ProcessDefinition from cache and not
execute an additional command.
[ACT-1848] Handle MultiInstanceActivityBehaviors
[ACT-1339] Calling ActivityEndListeners within an AtomicOperation.
Add wildcards to osgi import with resolution:=optional

The manifest generation will only apply the optional resolution to the exact package defined (e.g. com.fasterxml;resolution:=optional will apply resolution:=optional to com.fastexml but not to com.fasterxml.uuid). When deploying activiti-engine, karaf complains about missing bundles (junit, drools, com.fasterxml.uuid) that are supposed to be optional.
Reference userId in Attachment
 fix act-1877
JUnit scope on parent pom
Missing JUnit direct dependency
change paremeter processInstanceId to activityInstanceId
change line separator to unix
Add create and last updated time to HistoricVariableInstance
ACT-1890: Multi tenancy support: historic entities
Merge branch 'master' of https://github.com/Activiti/Activiti
Merge pull request #191 from smirzai/act-1877

 fix act-1877
Merge pull request #193 from xuhuisheng/ACT-1894

ACT-1894 change paremeter processInstanceId to activityInstanceId
ACT-1890: Multi tenancy support: fix for historic wrapper
Merge branch 'master' of https://github.com/Activiti/Activiti
Excluding testcase untill pull-request is updated with test-bpmn
neglected process diagram for act-1877 test case added
Fixing tests that rely on history, to check if right level is set