Use compatiblity version declarations

Also, add .tern-project to .gitignore