port to osx.
updated README.
updated file structer.
fixed to work on linux..
tested https;