Update index.php and test.php to cakephp 2.4.1
Use CakeResponse::file() for sending files

CakeResponse::file() replaces MediaView, which becomes deprecated since CakePHP
2.3 according to the doc
Fix function access modifier of MediaController