Let's start at the ending. On the final track, "Cudi Montage," a guitar riff from Kurt Cobain's "Burn the Rain" is utilized throughout the track. The song came from Montage of Heck: The Home Recordings, which was a compilation of Cobain's, well, home recordings that was released in 2015 (hence the title of this song). While Cobain's original felt more like a rumination on drug addiction, "Cudi Montage" is a bit different, with Cudi and Kanye looking towards faith to power past the struggles of the world, whether it be drug addiction of violence in black communities.
Kanye and Cudi kick off "Freeee (Ghost Town Pt. 2)" with an excerpt from a Marcus Garvey speech.
May I say something to you to give you a true knowledge of yourself and life
Man in the full knowledge of himself is a superb and supreme creature of creation
When man becomes possessor of the knowledge of himself, he becomes the master of his environment
The words of the Pan-African leader (who also inspired the name of another great hip-hop duo, Black Star) fit perfectly with the sequel to "Ghost Town," which deals with loosing yourself from societal constraints and living free.
That same track also gets some of its drive from, um, chopping up a song by Mr. Chop: his 2008 track "Stark."
While Louis Prima is listed as a featured artist on "4th Dimension," what you're actually hearing is a sample from his 1936 recording "What Will Santa Claus Say (When He Finds Everybody Swingin')?" There's no real correlation, aside from adding an eerie effect to the track.