Allow passing class instances to api.add_resource in a similar way that flask-restful does. Fix https://github.com/rantav/flask-restful-swagger/issues/30