Made changes to allow secret subkey imports

I simply made the same changes that Mike Cardwell made previously, on
the current sourcecode. As Mike specified, these are pretty hacky and
just involve removing some checks that are made on key import, etc...