Fixed routeAfterLogout

Simple two-line change to examine the `settings` property of the `SinglePageLogin` object. All other changes are whitespace and a side-effect of my editor trimming trailing blanks.