Here's a free online resource to start with (full disclosure: I run the site :-) ): MultimediaWiki. Further, here is a document I wrote a long time ago which might help with a lot of your question: Multimedia Technology Basics. I'll try to answer your questions here.
1) A container format (like AVI or QuickTime/MOV) generally holds (contains) various streams, usually at least one video stream and one audio stream. These video and audio streams are usually encoded using a codec, which is an algorithm that describes a more efficient method for encoding data. Packets and frames: Sometimes, chunks of video or audio data is broken up into packets or frames as defined by their codec specifications, but this tends to get down to semantics-- packets, frames, chunks, they're all just pieces.
2) When you create a multimedia file, you use a coder algorithms to encode the video and audio data, then you use a muxer to put the streams together into a file (container). To play the file, a demuxer takes apart the streams and feeds them into decoders to obtain the video and audio data.
3) Codec means coder/decoder, and is a separate concept from the container format. Many container formats can hold lots of different types of format (AVI and QuickTime/MOV are very general). Other formats are restricted to one or two media types.
4) Codecs compete on many factors and are designed for many purposes. One big difference is lossy vs. lossless. If you need to retain all the original information, you choose a lossless format, but you won't get the best compression. If you can afford to lose some data, you can choose a lossy format which will sacrifice (hopefully imperceptible, to humans) information in exchange for greater compression. Some codecs are optimized for different kinds of data, such as speech codecs which assume the input data is humans talking, or screen video codecs, which assume the input video is relatively static computer desktop sessions.
5) Creating a new codec would imply a new algorithm which would require a new encoder AND decoder.
6) I think these would count as containers. A DVD rip is likely to be something called an MPEG program stream (MPEG-PS), which would likely contain MPEG-2 video data and one of a few different audio types.
7) There are lots of libraries for playing this stuff. First and foremost, you need to consider your platform (Windows, Mac OS X, Linux, iOS, Android, etc.). There are appropriate libraries and frameworks on each.
8) Again, many of those frameworks and libraries will probably serve your needs. It depends on your platform and licensing needs.
I hope this has given you something to work with. As you can see from my handle, I love talking about this stuff. :-)