Minor changes and bug fixes.
Added admin page : allow setting of user permissions.