Move things over to persistent.py

I'll be moving the Persistent class in there shortly.