Fix native endian parsing in frame header

Use network byte order directives
Fix native endian parsing in frame header, part2

Fix native endian packing for uint32_t.
Fix framer_spec.rb as well.
fix endian encode/decode in spec helper