Initial 4.x file commit

Here’s a working* starting point. *Some assembly required. Batteries
not included. Use at your own peril.