[ELY-125] Add a DER encoder and decoder

https://issues.jboss.org/browse/ELY-125
That's a good point, I'll do that.