Added Broadcast receiver class permission
Added accessory state functions and receiver