Ported demo.js from Tern demo to Haxe, now it's located at src/core/TabsManager.hx(needs testing).
Added basic externs for Tern server.