Added 'get-tmp-copy-of-resource' function

The function is needed for `add-war-handler` tests defined in `trapperkeeper-webserver-jetty9` repository.