Rmcommon working on XOOPS 2.6

This is the version for rmcommon that works on XOOPS 2.6, however, some
changes are required on XOOPS 2.6 in order to get all rmcommon features
working.