Added Configuration object and refactored the code a bit.

- Added a Configuration class to facilitate a common way to
  configure the package manager.  Will be able to parse
  configuration that we read from file in JSON format.

- Simplified the target file calculation code (removed superflous method)