First version of distributed queries.
Added timeout capabilities to futures.