Implemented the index and create action for the tweets controller.