refactor-864370: Propagate error status to outside correctly

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Move the test command/converters to mockCommands

If they're in the main store of mock commands then it makes it easier
to try them out for real, and we can re-use the json types more.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Rewrite union.parse()

The old union.parse didn't pass on predictions when there was a match
that was valid, this one does. The bad news is that the UI doesn't
currently display predictions for valid inputs, but that's a separate
bug.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Add a url type

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: s/isSelection/hasPredictions/g

More and more things are lying about if they are a selection type, so it
is time to admit that this is really about if there are predictions.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: 2 minor fixes to helpers.js

The new promises library requires you to use an array in Promise.all()
and make sure we clear the input in the failure case as well as the
success case.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Minor fix in union type

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Add host.createUrl function

"new URL" is a standard that isn't well supported everywhere.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Update url type to provide better predictions

Uses host.createUrl to do this.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
union-1016578: Improve unit tests for url type

Signed-off-by: Joe Walker <jwalker@mozilla.com>
Merge branch 'union-1016578'
union-1016578: Fix broken </br> → <br/>

Signed-off-by: Joe Walker <jwalker@mozilla.com>
Merge branch 'union-1016578'
Merge remote-tracking branch 'localgcli/master' into mozmaster

Conflicts:
	lib/gcli/connectors/direct.js
	lib/gcli/test/helpers.js
	lib/gcli/test/index.js
	lib/gcli/test/mockCommands.js
	lib/gcli/test/suite.js
	lib/gcli/test/testTypes.js
	lib/gcli/test/testUnion.js
	lib/gcli/util/host.js
	package.json
	phantom-test.js
	web/gcli/util/host.js
union-1016578: Protect calls to createUrl in case they throw

Signed-off-by: Joe Walker <jwalker@mozilla.com>
Merge branch 'union-1016578'
Merge remote-tracking branch 'localgcli/master' into mozmaster
union-1016578: Unit test fixes

Signed-off-by: Joe Walker <jwalker@mozilla.com>
Merge branch 'union-1016578'
Merge remote-tracking branch 'localgcli/master' into mozmaster

Conflicts:
	lib/gcli/test/mockCommands.js
	lib/gcli/test/testUnion.js