gamepad glue: improve frame parsing code a lot

- the unknown message size problem should be solved now (parser grabs
the first byte, looks at the message size, then grabs the exact rest of
the message)
- almost the same code can be used in the proxy_dll later to parse the
messages right
- reorganized much of the parsing code in own files
- add the socket and player id to game_t/player_t