Replication manager changes

These should be throws, not returning null. Someone calling this function should reasonably expect to get back a key. If they aren't that sounds very exceptional to me. And certainly these exceptions in particular are unrecoverable and the first one (NoSuchAlgorithmException) means there is a fundamental problem with our installation and nothing is going to work. So again, an exception seems appropriate.