Support loading SSH keys from memory
Minor cleanup
Move import
Allow paramiko to do key type checking
Raise last exception if no valid key
Refactor key loading + add password support to in-mem keys

Re #909