Fix missing processing for intermediate response being delivered after final error response.
Finish all scenarios in samples.
Rename some methods.
Gradle build to export as jar.