Option to exclude files from sync

Hi, I implemented an option to exclude files from sync (temp files and so on). I quickly tested it and it seems to work fine without bug. Feel free to make modifications if you need.