I'm curious as to how this works - did you happen to write anything up about that endeavor? There are endless applications to writing web apps for an Apple TV.
(In addition, the second generation Apple TV can be jailbroken and the relevant software reverse engineered if there is anything unclear in what you discovered thus far)
Re:Apple TV for Torrent Streaming in JS
by greg5green on Monday July 08, 2013 @11:09AM
(#6007129)
I don't know if he had written anything up, but PlexConnect (https://github.com/iBaa/PlexConnect) uses a similar process to serve Plex up to the AppleTV via the Trailers app.
When you load the MLB app, it requests javascript and assets from mlb.com and operates on some sort of XML document rather than an HTML DOM. At my office we use 3rd-gen Apple TVs for AirPlay presentations, and I did some experiments with making a custom app that showed a rotating list of clients. We used a Raspberry Pi that functioned as both webserver and DNS, then pointed the Apple TVs' DNS at the Pi to reroute all requests going to mlb.com.