Broke out super-heavy media libs and CLI stuff into separate file