add some code for generating key pairs using node crypto module

sample invocation: node controllers/keygen.js