Updates to persistence txn handling. Added the ability to turn off the toggle on headers. Proper handling of persistence JS init.