Factored out code for signature and puzzle. Wrapped RSA signature (but haven't tested). Added filesystem cache prevention.

Signed-off-by: Andrew Miller <amiller@dappervision.com>