improves update from POST

Allows for arbitrary key/value indexes. Also fixes bug which was hurting
updates, additions, and deletions of config items.