Add ReplaceSeries and refactor the CreateSeries function into smaller steps

You want to check that the keys passed in aren't private. These should be public keys otherwise they'll serialize differently.