Use more dict.get and some windows things

* Implement Windows restart_perl and restart_app.
* Use .get for retrieving dictionary entries.