Fixes an issue where c.JSONFail was attempting to write the headers multiple times
Merge pull request #3 from kevinwatson/headers_already_written

Fixes a write header bug in func JSONFail