Initial cut of changes, work in progress.
Repackage and rename.
Implement basic infrastructure for user and role based authorisation.