savestate

Signed-off-by: Leo Bärring <leo.barring@gmail.com>