Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
modmyiphone has the information you require.

essentially, you can ssh into the iphone and drop the icons and dock into the correct file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.