Dave,
you don't need package_id and folder_id, the initialize method will care about this. The page that i have posted just replaces the root page, so e.g. yoursite/forums will continue to work, no matter, what xowiki pages are installed.
What you are describing is a complete takeover of xowiki, where it handles all requests (this needs ... -url /xowiki[ns_conn url]
)
-gustaf
PS: i will thing about a configuration option for an xowiki instance that will allow an arbitrary prefix instead of />instancename</>lang< to replace the patch...