Serial has been available since 1.x and has been used by a number of hobbiest hacks.  Bluetooth has recently matured with the public version of BTstack (there are bluetooth keyboard and mouse apps available on Cydia and RFCOMM is available)