Api list command

Adds the list command to the API, which lists all of the references in a given file.