initial commit
Changed to be ssl aware.