Twitter takes legal action over source code leak