postsFactory service to provide data from/to api/post from/to views' controllers and api/post to perform CRUD operations on MongoDB