Access control function rewrite, UI near complete
Still needs sorting and access restriction enforcement function rewrite