Adds RSA key extraction via Heartbleed

Lots of refactoring too.