Fixes for the latest SDK version (1.12) and greater API support

* Fixed bug where second handler fired constantly
* Added support for text layer updating
* Added support for getting window background layer