Site URL autodetect and some security fixes #1
Security upgrades and fixes #2
Security fixes #3
Security fixes #4