Fixed POST data being passed in URL and broke out JSON parsing from POST
request in order to get errors passed through correctly.
Cleanup.
Merge pull request #6 from karma0/master

Fixed POST data pass-through and enhanced error handling on POST