many cleanups, renaming, add reset
add threads cache
add files cache
allow file cache to play in mplayer as well