Generate model and controller for Posts, respond to json