add tern to .gitignore
remove old code

from when the drone was running in a different node process
more cleanup. Needs to be tested!