Latest updates for keymanagement

Added parameter to limit batch size of re-encryption and added where condition when re-encrypting so overwriting cannot occur. Created ui for re-encrypting data, and also fixed some bugs discovered in ui.