Twitter has long come under criticism for not doing enough to police abusive behavior on the often-freewheeling messaging service.