Change all_associated_filepaths prop to return set

Used to return list, but set is sufficient since it is working with IDs
that are guaranteed by the database to be unique
Use _ for unused variables during iteration
Apply code review comments; thanks @wasade!

- Semantic compression!
- Use sets where appropriate