Use warning module for context warning instead of invoking console.warn ...

Use warning module for context warning instead of invoking console.warn and monitorCodeUse directly.  Depends on internal change: https://phabricator.fb.com/D1695279

@sebmarkbage Is this what you had in mind?
`===` is better than `==` except sometimes when comparing with `null`.