reverted url-action handling.
added logic to queue up events until the js app is ready.