Extension size optimizations.

 * Removed unnecessary dependencies.
 * `require` minified 3rd party dependencies.