Refactor code.

Moved and renamed RegistryPS to dub.packagesupplier, made Dependency a struct and improved code convention adherence.