medium: ui_resource: Make op an optional argument to trace/untrace

Makes the user-interface to trace/untrace a bit friendlier:
To trace all operations, use resource trace <rsc>.
To remove any trace for any operation in <rsc>, use resource untrace <rsc>.