Split types into two kinds: simple and complex (made of simple)
Implemented type for packet 0x38 metadata
Changed keep alive packets IDs generator a little
Refactored some code
Wrote invalid packets handler