Fix token setting when token is in header of POST request.
Even though the JSON#parse method call was evaluating to nil, it wasn't passing the torch over to env. This may be related to the rescue.
Proper RESTful JSON response.