Fix redirect to login page when using single open id provider authentication
Pull request https://github.com/zanata/zanata-server/pull/579

Squashed commit of the following:

commit a9ba559c18b560a12f7884c00c6de0f5d0f53f36
Author: Carlos A. Munoz <camunoz@redhat.com>
Date:   Thu Sep 4 16:56:35 2014 +1000

    Rename methods and change comments.

commit 48da2eaefe724702ec28e3a478fbe0f4df8fd03e
Author: Carlos A. Munoz <camunoz@redhat.com>
Date:   Thu Sep 4 15:03:47 2014 +1000

    Code review updates.

commit 8a3d8999e10fbf7c4a781843bee1db62782fe625
Author: Carlos A. Munoz <camunoz@redhat.com>
Date:   Thu Sep 4 12:04:30 2014 +1000

    Fix redirect to login page when using single open id provider authentication.