rest_proxy.php bug fix

Found two bugs in rest_proxy.php:  Original status code was not being
passed along.  And headers with multiple entries were being mangled
(think multiple Set-Cookie headers).