Added getAllPosts service and updated homeview to support.