Preserve keystate when updating devices
Add a new test to check that updating a device (i.e. putting an already stored device) does not change the keystate, and fix the code to indeed behave that way.
BOLT_POLICY_DEFAULT is specified, get the policy from the
BoltDevice so if that is already set, we don't change it.
Closes #153 (closed)