I want to listen to the director's commentary for more background, but I can understand why he said in his comments last week that a lot of the fans are going to hate this episode for a lot of different reasons, but that they need to give it a couple of weeks to sink in. There's a couple of references that come to mind over the ending, though. One is from a 1970 movie titled Colossus: The Forbin Project
( More with spoilers for Colossus & BG )
( More with spoilers for Colossus & BG )