Bump version to 0.40_11
Refactor licensing logic
Refactor prereqs logic
Do not set provides in metadata if no_index is set
Generalize resources hook
Prepare for release 0.40_11