Added support for view persistence
Started adding support for model persistence.