Implement list command

list without args lists all the instances
list with one arg dumps the metadata for the given instance