Attribute mapping support.

Added a way to declare attributes and data binding of root node of widget, in widget prototype.