Generator As Handler

Make generator a handler instead of a behaviour. This will make it so callbacks in generators are optional (less boilerplate).