I suggest you start looking at Jenkins to get the job done. It can create an ipa for every target you want... Start automating your build via Jenkins
For automating the distribution process, i received a mail from Apple last week about meta data delivery with Transporter. It's a command line tool. Sounds interesting...