fixes #6825 - refactor api/v2/filters_controller.rb to use find_optional_nested_object and add Authorizable to class Role
fixes #6855 - bump safemode gem version
fixes #6881 - check if in rake when validating template changes