You might also want to look at the similar thing that was done on the Kobo (don't have the link right now, check the Kobo dev forum).
IIRC, it's using Python, but that's not really a problem, you should be able to use the Python package used by the ScreenSavers hack. (And, in the event it's missing some extra modules/packages, don't hesitate to poke me

).