ACT-1418 Unit tests and suggested fix for NPE on uncaught error event

Work done at Hackergarten Vienna together with @rafacm and
@florianpirchner
-solved JIRA issue ACT-1555
-ProgrammaticBeanLookup(name, bm) now uses BeanManagers resolve() method
to find the right bean
-wrote JUnit test, two types of beans.xmls and one @Specializes
annotated bean
Merge pull request #38 from rbraeunlich/master

Solved ACT-1555
Merge pull request #37 from tiesebarrell/master

Cleanup and textual review of userguide CH01-CH07
ACT-1571: Added margins for subprocess
Merge branch 'master' of github.com:Activiti/Activiti
Revert "-solved JIRA issue ACT-1555 -ProgrammaticBeanLookup(name, bm) now uses BeanManagers resolve() method to find the right bean -wrote JUnit test, two types of beans.xmls and one @Specializes annotated bean"

This reverts commit f13eafb3bb9a4c5ac596e7de8ef9ac22cd0f3a14.
Added new process definition and instance image based on javascript
Merge branch 'master' of https://github.com/Activiti/Activiti
Fix for ACT-1579: Process engine can be DoS'ed when deploying unsafe XML
Removed unused XML util classes
Small fix for swallowed exceptions in Explorer app
Merge branch 'master' of github.com:Activiti/Activiti
Fixed check profile build
Merge branch 'master' of https://github.com/Activiti/Activiti
Upgrade xerces dependency for cxf (QA failing due to Xml parser changes of yesterday)
Added process diagram documentation to userguide
Merge branch 'master' of https://github.com/Activiti/Activiti
Removed security from diagram rest service
Changes for OSGi package definition