changed virtual machine management and image management to use vmimages in additon to os images.  Also added redirect code for http 307 response codes