Refactor deployments so that a rule deployer can be easily added. The difference between new and existing deployments should be marked on the deployment itself as a property. The difference in behavior should be moved into the deployer instead of in the engine code that calls the deployer.
Also, there is a bug that probably the cache is not cleaned up after a process definition removal.
Tijs is waiting for this to complete the rules integration. So ping him when done.