Various linting and JSDoc
Change core/has to function with foreign loaders.

- Provide unit tests.
Migrate core/async to use has API