Support environment variable forwarding

Fixes #4131.

This is pretty much my first time with ruby, please point out any dumb mistakes. Also I'm not super familiar with vagrant's architecture, so again point out anything I need to change.