Added permissions, moved bluetooth stuff to activity.
Merged in Tarik's changes.