Replace links to media with actual embedded media

Built using polymorphism to allow easy extension of the system.