Adding file_list and file_dict to pacman.py

This feature is important to system introspection (#2735), and matches the file_list() function introduced to yumpkg.py in #3481.

@morganfainberg, sorry to tag you again, but you did the repo stuff for apt, so I assume you have the fu. This may be a better example than #3481.