cache local replay metadata

https://github.com/FAForever/lobby/issues/60
Rewrite as:

    with open(item.filename, "rt") as replay_file:
        oneline = replay_file.readline()

which closes the file instantly after the read.