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 &lt;rsc&gt;.
To remove any trace for any operation in &lt;rsc&gt;, use resource untrace &lt;rsc&gt;.