Survive restarts!

Hey @jpetazzo, 

With this in place we are able to restart the host that is running gunsub (my own laptop in my case ;) and it will continue doing its magic from where it left instead of going through everything again.

Well, you know this already but it is my second time dealing with python code, so apologies if somehow this could have been done in another way :-)