Added app_master and master.php and added master files