SPARK-1830 Deploy failover, Make Persistence engine and LeaderAgent Pluggable

let's rename this "prefix"