Move the encrypted data bag stuff into a helper lib

Change-Id: I909266708bdaf5a0a5b0fcdae87b708c6914086c