plainbox:commands:session: Add the resume flags to the export command

Interpret the resume session flags when exporting results.
Very useful to quickly get a report from a session dump run somewhere else.
"automatic merge of lp:~sylvain-pineau/checkbox/export_flags/ by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"