Making the optimizer pluggable by extensions; please review for committing to trunk
Making the optimizer pluggable by extensions