General Birth-Death Processes: Probabilities, Inference, And Applications