bug fixes. clean up of portal xql files.side note: the portal namespace has to be split into sub-namespaces, e.g.portal, portal::element, portal::element::parameter, portal::layout,portal::theme, etc. each should go into it's own file so that the code will beeasier to manage.
Removed declaration of template::get_resource_path, because this proc is already defined (with a different body) in util-procs.tcl. We ran into the problem, because we reloaded 0-procs.tcl using APM, and it broke all the forms, because it redefined template::get_resource_path to look in a different place.