define get_token method in users controller to extract the token from the request
removed get token method from users controller because it should be on posts controller
added posts controller with index method and added resources for posts on routes
added json view for posts