Changed (u)int to u32 for connection IDs (I hope there's no more of these). Closes #568