added debug option to log instance methods, switched to inherited_resources naming of methods to get resource name, switching tests to minitest/ActionController::TestCase