Refactoring BPMN Process builder.

Added node handlers so that custom handling of BPMN nodes can be made a
lot easier.