publish error to configured endpoint.
raise error when invalid token is given.
use rails convention for posting the backtrace array.
complete example for public facing API.
raise configuration error when not set up properly.