BF: work out API for delocation, and test

Make delocation a little less ambitious, in that it doesn't try to
resolve links from copied libraries.