Use paths instead of URLs everywhere

Makes the code cleaner, we really just need the paths.
Implement deleting extraneous files