importing many improvments from another project

Starting to work on making vagrant-matrix portable so it can be used as
a sub module.