WORK IN PROGRESS -- Start Work on Returning Values to the Blocks Editor.

Change-Id: Id4cee486d66089f2e638ff1302d78841b9413554
Each Return Value is now a JSON object instead of the String representation
of the return value. The JSON Object includes a status and "type" as well
as the raw return value.

Change-Id: I3a751e2fa3cbd4ca60132a0eafe022267ca5837a
Include blockid of block (or -1 if not specific block) in repl
transactions.

Change-Id: I3f7e77b470165181c7ca037042ae148e5cdb6a97
Modify the Companion so it sends back responses for each Yail
evaluation. Update Blocks Editor to read the returns, and mark blocks
which have errors.

Change-Id: I7c131b450a3eb2713def0ca6a84d0246724889e4
Implement the "Do It" Context menu (first crack at it). Result will
be placed in the blocks comment text if it is connected to the companion.

Change-Id: Ib93d9d3f4b1c96ff2070914c658d93804fcc1281
Cleanup runtime.scm. Not sure this is all correct yet.

Change-Id: I96ed882371c45bd5b469841b9c8e3bc35c69eb06
Add a two-second "noop" to poll phone every two seconds when
idle. This is to read any messages that the phone might have for
us (like a request to switch screens [not yet implemented]).

Change-Id: Iabf798ec22381f62250e99d1fb9ad7bd6a96f287
Fixup Runtime error handling.

Change-Id: I7ebe5b8a3878d66dd4dd7e463867aeccb834b8dc
More Fixups to runtime.scm and update Companion Version as displayed.

Change-Id: I3d39f17cdab1f7c31317dfebb39b8a500c26d70f
Added Error Dialog if you attempt to use “Do It” while not connected.

Change-Id: I75a1373f0361c61fd1fd7a1ef5c40fc7deaeb5db
Get rid of errant emacs modeline at the top of blocklyeditor.js

Change-Id: Ib589f5fda332a0bc7ed9f53ded4f2a7861ebf613
Begin implementation of Screen Switching from the Companion.

GWT Coding complete (and tested via browser debugger). Blockly and
Companion code still to do...

Also cleaned up the “indicateDisconnected” code in
DesignerToolbar. Use existing method of finding the non-static
DesignerToolbar object instead of code I added which duplicated that
behavior.

Change-Id: I490cb16966018e8aaf1477d53d66ba035d423bcc
Permit switching Screens from the Companion.

We can now switch screens from the Companion. Arguments to and from
are not yet supported.

Change-Id: I882aa596ef690d81d6c5bd4ab94d9f31f363f126
Add emacs mode line to replmgr.js

Add emacs mode line to set indentation to 4 instead of 2 for
replmgr.js. This is non-standard, but we should use a dedicated commit
for re-indenting to avoid creating unnecessary merge conflicts for
others.

Change-Id: I820aa0c5d615934df4e22a813bd644ef1beddba2
Add Version checking between the Blocks Editor and the Companion.

Change-Id: I4aa5feed9fa3d5105288c60ebec308890d6e05e0
Clear the stack of pushed Screens when the Companion disconnects.

Change-Id: Ie817540fb576339cd6ef3fa97527053192c91ce7
Fix resetYail to properly kill running timers.

Change-Id: I26f1c40c35714cfd94ef5586efed8cb933b15ff2
TEMP COMMIT: Add Fault Generation.

Add a "doFault()" function to the PhoneStatus Block so we can
purposely cause an error, in this case we cause an exception that says
"DoFault called!".

Change-Id: Ica7044d604c6f29e04f8e982e640192146666f7f
Add Version Name to Front Page of Companion.

Add The Android Version Name (via a call from the PhoneStatus block)
to the front page of the Companion.

Change-Id: Ibb46c65b14264689734123e470cff858601ee74c
Special Hack: Detect Older Companion and Give Appropriate Error

We have added a new item (the blockid) to requests to the
Companion. This results in a security error if we attempt to talk to
an old Companion if it doesn’t implement the blockid argument. To
avoid a confusing error for the end-user, we implement a special
/_ancient URL in the new companion and verify this exists in the
blocks editor. If it doesn’t we give the user the “too old companion”
message.

Change-Id: Ib8a3dd9a16a91ec343ab42177c974f53738c46dd