extract packet parsing into helper module
add more tests for metric types
Merge pull request #328 from etsy/refactor-packet-parsing

extract packet parsing into helper module