rewrite encoder and decoder as classes
revert delta-encoding arc coords
Merge pull request #12 from mapbox/classes

Refactor using classes