[ELY-125] Add a DER encoder and decoder

https://issues.jboss.org/browse/ELY-125
This could probably be an ArrayDeque instead, which also implements the stack contract but is much more memory performant.