Moved URL / preview related code to FileList

This removes the need for apps like trashbin to modify the Files utility
class. Ideally in the future Files should only contain utility methods.

Fixed unit tests related to download URL and preview URL.
Added JS unit tests for the trashbin app (WIP)