Refactoring time constraints
Add script for generating a new self-signed cert
Add pid file and kill script