Larger name change: alter xowiki::portlet (namespace, class, variable names, package parameter) to "includelet" to reduce confusion between dotlrn portlets and xowiki (xowiki can be used as an portlet in dotlrn). The change script copies e.g. the old package parameter "top_portlet" to the new parameter "top_includelet".
This change effects as well many adp files; in case of local tailorizations, please change your files as well accordingly.
move return_page and reply_to_user to general package definition to make it resuable in other packages, provide to Package methods "invoke" and "error_msg" optional non positional arguments to control the behavior in error cases better, especially when xowiki pages are included