Bug 1014065: Implement ioctl support

The user-space uses several ioctl operations for controlling
the NFC device's power state. The patch adds support for these
ioctl operations.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Bug 1014065: Fix length reading for BT packets

The current code expects NCI packets to be sent from the NFC
device. This patch fixes the code to support BT as well.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Merge pull request #11 from tdz/bug-1014065

Bug 1014065. r=vicamo