Add a stub 'persist' function to persist side-effects

Signed-off-by: David Scott <dave.scott@eu.citrix.com>