Reorganize requires

This reorganizes requires a bit and switches some optional or rarely used features to be lazily loaded via `autoload`, which speeds up the boot time by about 10%.