Added timeout REST API method, to allow setting different timeouts.