Working prototype

Still needs the application to ask for cache folder rights and the code for syncing the output is an ugly hack