Issue #1023: Reimplement the patient access restrictions as Authorizatio...

...nModules

Added an authorization module for owners