MDL-42834 Authentication: Add savepoint for removing loginhttps and update comments and exceptions in lib/pagelib.php