Extend ec2 module to support spot instances

This is a patch to be considered as a response to #2846