libathemecore: add glue and implementation for channel_mode hook