Intruduce some framework

Hey, this is current state of this project for us; we managed to get it in use but for now we're leaving it behind over https://github.com/oesmith/puffing-billy.

if you find anything useful here or have feedback or suggestions on it, please let me know.