Add persistence

Add a persistence layer for the site.

This is not yet finished