Add bindings for x509name
Move some things from functions to macros
Merge pull request #127 from cyli/x509name

Add x509name bindings (Refs #77)