Add scripting persistence and better replication support.