Remove unused __init__ code
Add API tests
Specify media dir as an argument rather than using a configuration file
Test media from API
API in before_script