Fix credential handling stuff

* Fixes for euca2ools 3.0.0
* Cleaned up credential code a bit