Added Setting page

1. Added setting page to change locations
2. Added function to clear file cache on exit and also on location
change