definePrivileges only for pages, checkPrivileges added

from now on, definePrivileges should be called in the begining of a page
to set privileges for it. It will print an error page if the actual user
doesn't have enough role.

Added checkPrivileges, boolean return method to quickly check privileges
before performing something.