Adds resolve_id() helper

Adds/uses helper for CLI modules that want to resolve user-input into
one (and only one) id for whatever object they're want. Also adds the
id resolver for the 'sl dns print' command
Merge pull request #113 from sudorandom/resolve_id

Adds resolve_id helper