Move project to Cask.
Non blocking IO in candidates query.

Restart company-tern in query callback rather waiting hardcoded timeout.
This make company-tern asynchronous backend.
Add last buffer indicator for cache validation.
Fix company-tern-cache-p.

Compare last prefix with given by string= function.
Get candidates synchronously if company called explicitly.
Effort to use :async company api.
Use company :async api for candidates query.