More work on GUI-related security methods. Some schema-related fixes.