Restore state

save/restore state work in progress for AwfulDevs/Awful#132