Go with a i5 6400, the cheapest 1151 motherboard you can find, and 8 GB of DDR4. Stock cooler should work just fine for your purposes. Should cost somewhere in the mid-high 200's.
If you wanted to step up a little bit, get a 6600k, they might be discounted because of the 7600k and a Z170 board (also might be discounted), maybe 8-16 GB of RAM, and a 212 EVO (or whatever the new version is called)