Adding capability framework to actions, factories and components.
Working on capabilities, cleaning up get_id_range functionality