Break vagrant VM configuration logic out into helper functions.

Other cleanup done:
Fix a bug in one of the examples.
Add windows vim temp files to .gitignore.
Merge pull request #22 from gsarjeant/helper_functions

Break vagrant VM configuration logic out into helper functions.