Adds resolve_id helper

To stop re-using bits of code, this adds/utilizes a new helper for CLI modules that want to resolve user-input into one (and only one) id for whatever object they're want and related tests.

Also adds the id resolver for the 'sl dns print' command