Basic hooks to customize swagger generation

Useful hooks to customize how some swagger elements are generated. They are optional and do not prevent default behavior if provided.