Refactoring codes

Add modelapi
contentposterprovides only pure logic, no db.