generator xml, template rewrite
Implement wayland object binding detection

reference:
http://ppaalanen.blogspot.com/2014/07/wayland-protocol-design-object-lifespan.html