Erlang term decoder/encoder

Decoder largely completely (I'm skipping some of the exotic things), encoder beginning, will add commits here as I progress. PR for visibility given that master branch is a wee bit empty.