Factory for a knockout view model.