add resolve property to the posts state, add functions for creating and retrieving comments into factory, update PostsCtrl.addComment function to work with backend