Add more documentation.

Also do some proxy magic with X-Forwarded-Proto.
Merge pull request #1 from nol888/master

Add more documentation.