Add pipelines and operator support. Fix memory leaks and destructor issues.
merged
mentioned in commit 22cfb88d