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.