rest-api: Some minor fixups

 - Fix broken JSON
 - Drop result and result_code from operation, use status instead
 - Add timeout arg to operation /wait

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>