Remove obsolete log4j configuration
Replace monadic plan functions with a dynamic var

Change plan-fn to use ordinary clojure functions, and maintain state using a
dynamic var.
Rename phase-pipeline to phase-context
Rename def-plan-fn to def-plan
Rename pipeline-when to plan-when