Hydrogen management in a synthetic crude refinery