Here is an older community thread that may help you:
http://forums.adobe.com/thread/1169810
It talks about steps to write a custom replication agent.
We will also put this on the community article list so the 'How To' information around this area is improved.