Binding

Final implementation of binding. Implemented global function to get
function name. Implemented helper class to get weak reference to the
object.
Changed rules