Incorporating some feedback from @steffkes in freenode/#silex-php that cleans up the PHP code a bit, especially when it comes to finding the Location header value.