initial changes to get packer working with new api

Started to adapt portions to the new API

Added support for finding the compute endpoint with new api