major refactoring of cache and fileman IO.

abstracted the file io and cache io methods (getnext and all that)
now you access io by getting and putting arraylists of items.
very simple methods now.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>