tl;dr: Shim source is here and a fully working example is here. And there is a video walkthrough that you can watch here: