Updates to ServiceEndpoint.uri generation.
Added support for formatJSON argument to ServiceEndpoint.
Added better ServiceException support.