Accept ECDSA keys in keys:add

Fixes #1262
Add tests for ECDSA keys
Merge pull request #1263 from public/ecdsa-keys

Accept ECDSA keys in keys:add