Merge pull request #7 from knsd/master

Cleanup pid-file at exit without SIGTERM.
New version: 2.2.2.
Merge pull request #8 from knsd/master

Move syslog initialization after closing all file descriptors and add some error messages about lock file
Nice syntax highlighting in README.md
Merge pull request #10 from knsd/patch-1

Nice syntax highlighting in README.md
Minor refactoring
Minor refactoring of minor refactoring
Merge pull request #11 from knsd/patch-2

Minor refactoring