Fix off-by-one comparison in AI_AddLink
Increase the models and sounds limits

Use shorts to transmit model and sound indices to clients, bump MAX_MODELS and MAX_SOUNDS to 1024