In case of a 500 error, attempt a GET to determine if the URI might be incorrect

fix for https://github.com/doctrine/DoctrinePHPCRBundle/issues/154
removed the ``getCheckLoginOnServer()`` method but added some checks to prevent infinite recursions.