[idl-generator] Supports attributes getter and setter

* Supports setting attribute from WebApp and from Native part
* Using synchronous call to avoid race condition