Improve media queries support detection. Fixed #233 - Conflict with matchMedia polyfills

Moved the bundled `matchMedia` polyfill to inside closure scope, always use it to check for media queries support and expose it if there's no `matchMedia` support/polyfill for back-compat.

More details on #233