zones, subscribe and unsubscribe support

XWALK-865

declare key and value as close as it is first used.