"ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
Create a new library which saves/loads the queue to/from the state file.