Moved `with-policy` from cram_plan_library into cram_language; also made hook look nicer

Please also look at the pull request for removing `with-policy` from cram_plan_library.
Also, exchanged manual definition of hooks by using the define-hook mechanism.