Make sure wait()s work

Make sure wait()s work
`(result) => { .. }` is callback, so it is obligatory to wrap it in `future`. This should be
`return(() => {
 			this.$project.ensureProject();
                        var future = new Future<string>();
 		       plugman.fetch(pluginId, this.getPluginsDir().wait(), false, ".", "HEAD", (result) => {
 			if (this.isError(result)) {
 				future.throw(result);
 			} else {
 				var message = util.format("The plugin has been successfully fetched to %s", result);
 				future.return(message);
 			}
 		});
             return future.wait();
}).future<string>()();'