moved id_service to lib/, where it (probably) belongs