Making Ajax File management more absctract WIP