Fixed logging to trace raw response instead of parsing to jobject first.
Refactored custom exception to use AppacitiveException defined in core sdk.