Performance fixes for insert and update
Performance fixes for insert and update

Rather than stacking for loops, an O(N^2) operation, this pre-calculates
a remote ID to remote object dictionary, in O(N) time, and then fetches
from it each time(in constant time due to dictionary hashing), reducing
the whole method to O(N) time which should be very useful in large
import operations.

0ff/DATAFilter,nbarnold01/DATAFilter