Added reudamentary authentication.
Been a while since I last updated... no idea what's changed since.
Authentication.