Refactored model package into model.log and model.swagger. Implemented implicit writes for model.swagger classes.