Implemented AWS VPC support.

This could use a thorough code review; I'm fairly sure it's all good, but there are some parts that I wasn't super confident about.