Implemented spot instance bidding and auto provisioning and offline node term thresholds

This isn't fully done i suspect but wanted to send the pull request for any code review suggestions and to know if this is something that could be considered for merging in. Currently works as expected.