Refactored serialization, tests are broken
Live preview view factory
Make code preview subclass