Yes, you could do this. Since in the new 3.0 firmware you can interface with 3rd party hardware you could easily make an IR remote that attaches to the phone and use your app to send the codes to the IR receiver.
If you want to fund the effort I know some people would develop it