Enable retrieving key from URI

+ Enable the curl code that was already there.
+ Fixes #24.