Added ResourceBuilder.

No unit tests for it yet.
Added fluent flattenResponseToCompletion() API