Templates for creating bindings thunks

Templates are really awesome