hid_sdp_crash1: Implement support for stateful packets
hid_sdp_crash1.py: Remove unnecessary function
hid_sdp_crash1.py: Print message on exit
Move common code to common.py

This will allow to reuse code for other tests.