R509 cli san

Hello

I'm working through the code to add subject alt names to the cli.
Reworked the bin/r509 so I could understand it a little better.

Locally, it looks like openssl 1.0.1e is causing EC stuff to fail. Pushing this in to see what travis says.

Thanks