Update OAuth logic to work in basic flow

An exception was being thrown due to an attempt to retrieve a potentially missing Node property: oauth-principal.
Additionally, the response headers have been updated to provide a more accurate "Location"