Moves core extensions into lib/core.js.