Add pull uploads.

* Add new constant: %ENV%_UPLOADS_DIR
Various improvements.