Add basic guard function to security module
multiple permissions handling
fix bug with saving of newly created note
Security guard expressions for object methods