Fix #1484, ensure we only store connection details in local storage and no credentials *unless* the user decides to enable the rememberMe button.  Also add a locationChangeStart task handler so plugins have a hook to maintain query parameters.