Initial port

This copies the code from another repo into a reusable app.