Move serializeModel to View, add tests and update docs