Added timeouts

All APY requests now time out after some seconds, keeping the functions from waiting forever.