initial commit - adding authorisation check statements and stuff
basic http user authentication kinda working, needs smoothing
stuff