Asset helper test

Added an integration test for AssetHelper.fileForUri().
Along the way, I took the liberty to refactor fileForUri() and extract some smaller functions. Also refactored AssetHelper.copyFile to use the apache commons FileUtils. That requires less code and it automatically cleans up after us.