added more flexible api and better nav

can now go back and forth, pause with space bar, and use a RESTful API
for getting at available files and the file itself