adds posts controller, model, and routes