Feature/multisite login page

Support multisite login page recognition (where `site_url` and `network_site_url` may be different).  Also update coding style to match the new standards.
Same as above?