1. Added some W3C specific security measures for when the system runs on W3C; 2. made some minor changes on the registry