#53: first commit.
#49: insert ERR_INVALIDCFG.
renamed
#53: insert modePerms.php, change perm chk for modes, insert
listAvaiableModes() and listModePermissions().
fix ERR_INVALIDCFG (#49)
inset new modes (#53).
#53: insert method modePerms().
#53: insert getter method modePerm()