add a decorator on events

Replace the subscribing of a consumer:

    on_record_create.subscribe(a_function)

with:

    @on_record_create
    def a_function(...):