Getting us down to 0 warnings/errors on compile.

This cleans up the replay code to use the new file format/database loading API and removes the 30 or so odd warnings added by the latest jscompiler/closure library versions.