Lightning Framework Fake Pull Request

I made this PR to myself so that Ioan/Mark can add comments inline if desired.
I used someone's else's implementation as a very rough starting point, and they did this. I'll remove it.