Changes:
* Move format constants to decode.go so that the mapping and values
are within a single file. This will help with code readability.
* Frame decoder unit tests now use NewDecoder instead of calling
internal decode functions to increase test coverage for public APIs