Added initial working version multiuser and access control.