Twitter has taken legal action to prevent a potentially damaging loss of the source code that underpins its service, after parts of the code and other software were posted online. The social media ...