Have log_out method return json.

This commit helps improve the discourse_api experience so that we can
check the json response if it was a success or not. This commit also
checks that a 404 is sent instead of a 500 if a bad user_id is passed
in.
Merge pull request #3008 from oblakeerickson/log_out_return_success

Have log_out method return json