bring global variables to javascript

brings us a bit closer to a desktop like js
environment

Change-Id: I003737c3bb92336aa5c4896c6409182023c35fb2
log watchlist actions (beta)

this completes story 310

Change-Id: Iae3a0dbf581945882f759543b62176d95bfa3283
Merge changes Iae3a0dbf,I003737c3

* changes:
  log watchlist actions (beta)
  bring global variables to javascript