Updated WeaveAPI.executeJavaScript() to accept function parameters and
updated ExternalTool to use it.

Change-Id: Ia8016aa4b02f559c529ba4f763c95803beb6b47f