Updated patch firmware, complete but untested:

-Basic support for acceleromter XYZ output
-Simple remote CONF for accel
-Some resiliency/error checking in case accel doesn't work
-General cleanup, better code practices
-New mode variable allowing to selectively enable/disable periferals