Mostly added logging-related hooks (with new namespace)

The hooks got moved to the `cram-language' namespace. This was done to not create unnecessary dependencies between packages.