add polling and custom headers to media controller. Closes #112