You will want to look at the UserModule and RoleModule classes in the portal codebase, or look at the UserPortlet registration process and see what it does.
The User/RoleModule classes work fine!
Concerning the creation/management of pages and portlet instances, etc. it would be interesting to know if there is a recommended way to do this. Should it be done via xml-upload or rather programmatic via java api? Any preferences?
Thanks for your help