Added redirection to https and other minor related tweaks