only unlink pidfile if it's the daemon/child shutting down
move library to composer-standard location
add composer.json