Major update
Remove tern
Add tern as submodule