AppleTV.applescript: Introduce underscan setting

- General clean up
    * Fix tabs; convert to spaces & re-indent
    * Relocate 'on run' statements to top of script
    * Make deviceName a global
    * Introduce debug global
    * Clean up comments