spawn-1007006: Rename host.exec to host.spawn

host.exec is a poor name because it spawns a new process, and we'd like
to have a host.exec function that does a JS exec, so first we rename
host.exec to host.spawn.

The slightly confusing thing is that the Firefox version of the new
host.exec is going to use Task.spawn. However this change just renames
a function. The Task.spawn thing will happen in a subsequent change.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Add host.exec and call it from Requisition.exec

This will allow the mozilla branch to use Task.spawn

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Call host.exec from converters.convert too

This will allow the mozilla branch to use Task.spawn in converters as
well as commands.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Firefox build needs Dryice 0.4.11

It has needed the filenameFilter feature for quite a while, but since
dryice 0.4.11 has been published to npm we can now depend on it from
package.json.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
spawn-1007006: Allow wider set of messages in exception tests

If Task.spawn catches an exception message then it adds "Error: " onto
the front, so allow a slightly wider set of error messages when testing.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
numericid-1002280: Remove unused findCssSelector function

See https://hg.mozilla.org/mozilla-central/rev/9e37eb7fbde3
author: Brian Grinstead <bgrinstead@mozilla.com>

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Copy promise.jsm to promise.js

Updated to work on the web.
No need for mozilla review.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Switch to ES6 API

s/promise.defer/new Promise/g

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Fix text mode help

This is not strictly part of fixing bug 992309, but the changes to m-c
are trivial, so I'm including it there.

'gcli help' failed on the command line because there wasn't a good way
to generate a DOM to format the string output from the help command.

This moves the toDom function from util to host, so we can have a tweak
to use jsdom when there is no document available.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
toolkitpromise-992309: Switch to ES6 Promise API (part 2)

s/promise.resolve/Promise.resolve/g

Signed-off-by: Joe Walker <jwalker@mozilla.com>

Conflicts:
	lib/gcli/mozui/inputter.js
commandappears-983865 Opacity allows clicks, use visibility

Signed-off-by: Joe Walker <jwalker@mozilla.com>
l10n-1020222: Remove unused l10n strings

Signed-off-by: Joe Walker <jwalker@mozilla.com>
Merge branch 'master' into mozmaster

Conflicts:
	lib/gcli/commands/demo/bugs.js
	lib/gcli/commands/demo/edit.js
	lib/gcli/commands/demo/hg.js
	lib/gcli/commands/demo/sleep.js
	lib/gcli/commands/server/server.js
	lib/gcli/connectors/direct.js
	lib/gcli/connectors/websocket.js
	lib/gcli/connectors/xhr.js
	lib/gcli/nls/strings.js
	lib/gcli/test/helpers.js
	lib/gcli/test/index.js
	lib/gcli/test/mockCommands.js
	lib/gcli/test/suite.js
	lib/gcli/test/testFail.js
	lib/gcli/test/testResource.js
	lib/gcli/test/testTypes.js
	lib/gcli/testharness/examiner.js
	lib/gcli/ui/terminal.css
	lib/gcli/ui/terminal.js
	lib/gcli/util/filesystem.js
	lib/gcli/util/host.js
	lib/gcli/util/promise.js
	package.json
	web/gcli/types/fileparser.js
	web/gcli/util/host.js