Move repositories to top of buildfile.

Prevents errors on clean checkouts that have not yet downloaded deps.
Set vim filetype in modeline.

See http://vim.wikia.com/wiki/Modeline_magic
Merge pull request #608 from candlepin/dgoodwin/buildfile-repos

Move repositories to top of buildfile.