Replaced existing manually defined hooks by using the define-hook mechanism
Moved the whole `with-policy' code from cram_plan_library to cram_language