Chaps 4-5 - Init and cleanup, and Access Control.

had a bit of difficulty with the access control but will come back to it
over christmas, couldn't get the package aspect working at times it was
annoying.