server/static/base.js: add transitioner keyboard events, refactor

Fullscreen mode can now be navigated with left and right arrows and
paused with spacebar ;). Also refactored transitioner to be more robust.