Initial commit.

Took code from my private GitLabs repo and culled all the experimental stuff out.