Alkampfer provides a great starting point that works against a single project. I've modified it to work against multiple projects below as well as filter the work item template directory to only include xml files. The TFS Power Tools add in some extra designer files.
One other issue I ran into is that, at least in my default instance of TFS 2013.2, the build service account had been left out of the Service Accounts TFS group. Adding the account required this from the command line:
.\TFSSecurity.exe /g+ "Team Foundation Service Accounts" n:[DOMAIN]\[BUILD SERVICE]/server:https://[TFS]