[idl-generator] Supports attributes getter and setter

- Supports setting attribute from WebApp and from Native part
- Using synchronous call to avoid race condition
Merge pull request #22 from deqing/attribute

[idl-generator] Supports attributes getter and setter