Use more dict.get and some windows things

* Implement Windows restart_perl and restart_app.
* Use .get for retrieving dictionary entries.
Merge pull request #3 from jraasch/master

Code refinements