Huge reshuffle. Adds media framework, unit test updates. Now supporting rudimentary PDF extraction. Next up: table of contents generation