API changes

@SirCmpwn, please take a look at templates/confirm_delete.html and figure out a way to tell the user that the file was deleted.

Merging this PR will cause API clients that rely on the API to always return JSON to fail undefinedly while trying to delete a file; the `/api/hash/delete` endpoint will return a redirect. The production site will not be affected.