Added enhanced security

Only 2 files (main.c and security.c) can access security-critical (setuid) functions (apart from the files containing the functions themselves). Plugins cannot
access the functions period, and even if they could, they cannot run them.