vagrant: refactor swift config script

This adds a util function for handling swift configuration.
vagrant: add some comments to swift config script
vagrant: add job chaining middleware to swift conf