Fix redirects

1. Don't append data to redirects.
2. Don't echo output, that kills the headers.
Merge pull request #15 from barryvdh/patch-1

Fix redirects