Add index action and find_by_id method for messages controller and messages controller spec