Include full stack trace in exceptions from rest endpoints

This is to help plugin developers find the source of their errors.
Before, we were chopping off the first element of the stack trace,
but in certain instances that was causing the stack trace to
appear empty.