Improvements in associate_keypair

Changes in associate_keypair to make procedure more error resistant and perhaps a bit quicker
Don't accept key association requests from API with no host specified
Merge branch 'staging' into key_assoc_opt
Merge pull request #53 from mistio/key_assoc_opt

Key association optimizations