New BT implementation

These are the commits needed to make BT work on android 4.2. The will probably break backwards compatibility with cm9, cm10, etc. so I'm not sure they should be merged in the master branch. Also note that power management of the chip is still WIP and it might be a cause of battery drain some times