Save to es

@czue @dannyroberts 

This should have no real changes on its own, I just pulled out the method that saves to ES.