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
ACT-1887: fix to prevent duplicate inserting of variables is some cases
Fixing compile issue with renamed test-method
ACT-1896: IS_ACTIVE_ now prefixed to prevent clash with ACT_RE_PROCDEF
Add create and last updated time to HistoricVariableInstance
Taking into account the value of "Loop type" property for isSequential
Fixing failing test for duplicate variable inserts
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