Cloudstack support

This PR adds cloudstack support.
Will do. However, these where more or less copied from the openstack files. You might want to improve them too.