Add systemd socket activation

Uses slightly modified sd-daemon.[ch] files directly from systemd
repository.
Finally add .gitignore file.