Add "key" argument

Allows you to specify which key should be indexed on added objects.
Merge pull request #1 from hughsk/key

Add "key" argument