split media into several files
split media tests into several files
added toString + getType everywhere. Fixes #9