The whole "The Firefly" was done in the comic book. Those of us who read the comic book have theorized the story would be the same. It was indeed.
Fox even had a video clip on it. John Noble tweeted a while back to check it out to get an idea of what the observer was saying when he said "he is still alive" in the last ep.