Add tern support, fix ctags