Added exception to parameters for serializer in exception controller

This simple change will allow the user to create a custom exception wrapper to show things like a stack trace if they want. Discussed in #766. Currently the exception is only available to a template, not a serialized response.