Revert "intelli_plug: code clean up and minor bug fixes"

This reverts commit 9b328de54545a7aa3b71c3caca4c6af6139d2ce9.
Revert "add doubletap2wake, completely rewritten on the s2w template"

This reverts commit 8e5ad420b0f8b7b3e6d3d39fa767480e182eb591.