allow API methods to return more then one value

This handles the case where an API call wants to return multiple values.

We'll need to hand-write chrome.fileSystem.chooseEntry() - the way it returns its values is a bit non-standard.