Refactor identifier lookup so that it can be shared between tronview and tronctl, and support the default namespace for both commands.