add home state resolve property that grabs all posts, add functions in posts factory to perform REST actions on our server and return data