Add permission checks to important libraries

Checks added to:
ents(sh/sv)
files
find
holograms
sound
trace
wire
Add CPPI permission provider
Finalise permission system

For now, at least...
Fix codestyle and whitespace errors for perms
Make failed permission checks throw errors