Significantly refactor configuration handling
ConfigFlags is not used in any of the modules that do the real work, instead we just pass in the necessary information. Renamed ConfigFlags to SavedConfig and moved it's definition into the Config module. Also change what information is kept in the Repo type so that it knows the local path too. A PkgInfo now also knows which Repo it is from.