[ELY-125] Add a DER encoder and decoder

https://issues.jboss.org/browse/ELY-125
You could use ByteIterator instead (see #81) once that's all merged and sorted out.  Then you can also get rid of all the IOException which might make things simpler.