Fix up redirects: use same protocol as user originally loaded in redirects; fix www. redirect.
Add some logging/errors boilerplate. Note that wp-config-local.php also has some logging config.