search: allow searching by file wholeref
picasa: re-use existing permanode if it doesn't conflict