I'm not sure how you missed these threads:
/programs and preinit - the easy way.
puca puca puca puca
Not to mention all the advice in the original thread:
empacman beta release
What you need is all in there, but if you have more specific questions after reading through that stuff, then ask away.
Edit: One thing that may not be clear from those threads is that you
must install the developer image (and hijack, natch).