Detect undefined properties and identifiers, and invalid function calls.
Detect undefined properties and identifiers, and invalid function calls.

Fixes angelozerr/tern.lint#1.
Fixes angelozerr/tern.lint#2.

journeyapps/tern.lint,angelozerr/tern-lint,angelozerr/tern-lint,journeyapps/tern.lint