Create purge api endpoint and command for loose files.
Change POST api/uploads to return an object (IE8 needs this unfortunately).