implement enabled_apis option.

This was marked as ToDo in code.