Make scrypt.maxPending a config option.

This also renames some internal uses of "max_pending" to match the
prevailing capitalization style.