Added Media model.
Updated socket communication method.
Updated media index template.