Taiwan ordered sweeping security reforms after a knife attack killed three people and injured 11 in Taipei.