XML exporter: updated to write bytes to the stream
Text exporter: updated to write bytes to the stream
RFC822 exporter: Updated to write bytes to the stream
JSON exporter: Updated to write bytes to the stream
run: updated to properly handle byte-spewing exporters, and added a test for the new translator class that was required
"[r=zkrynicki][bug=][author=roadmr] automatic merge by tarmac"
session: add SessionState.set_resource_list()

This new method can be used by session controller classes to introduce
new resources into the session state. This will allow checkbox session
controller to take over the responsibility of parsing resource jobs.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
session: add SessionState.add_job()

This method can be used to add jobs to an existing session at runtime.

The intent is to allow session controller classes to take over the
responsibility of handling checkbox specific job types, to be precise,
to allow a checkbox session controller to add jobs after running local
jobs.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
"[r=sylvain-pineau][bug=][author=zkrynicki] automatic merge by tarmac"