Add support for file upload schemes.

Change the way different files are stored using a scheme. Previously files stored in different locations would store a ~prefix/path scheme. This changes to a more url-like prefix://domain/path for files.