implemented PostController and complete basic post functionality.