add support for security groups in nova, and some little minor changes