Big patch by Aidil to the security system, adds domain security and a bunch of fixes.
Add some debugging info to the secure_d.
Added some debugging info to user_d and did some small tweaking.