support X-Forwarded-Proto

such as on Heroku

fixes #5

not sure my style matches your style, feel free to adopt the change however