Broke up controls.js into multiple files.

Cleaned up media.js files also.
Merge pull request #487 from heff/feature/clean-files

Broke up controls.js into multiple files.