P31XX & P51XX: use Open source Samsung dock keyboard attach program

Please merge together with:
http://review.cyanogenmod.org/62453
http://review.cyanogenmod.org/83339
http://review.cyanogenmod.org/62454
http://review.cyanogenmod.org/83341