Add bindings for pem (Refs #77)

Ready for review