Added Appveyor configuration.

Fixes #236. Only master branch is built for now to avoid overwriting Travis' status in pull requests. The appropriate badge would have to be added by a repo owner to `README.md` because I don't know the project ID on Appveyor.
Rewrote the script a bit nicer, I hope.