Implemented the option to exclude files from sync

Hi, I implemented the option to exclude some files from synchronization. I think is very useful for for excluding temp files and so on. I quickly tested it and it seems to work fine without bugs. Feel free to make modifications if you need.