Cursor insert change

@michaelcahill, here are the changes we discussed.

All of our tests appear to run, but there are a couple of changes that worry me, I'll comment them in the diff.