Add read and connect timeouts

If the rest end is down, we want to fail faster.