Add a method for resolving paths

We will probably need a mechanism for resolving paths. One scenario
where this could be useful is for determining the path of the current
directory, or when viewing detailed information about an item.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>