Made the repository URL configurable at run-time.
Added a lock file.

This makes it impossible to run multiple instances of packdude in parallel.