Revert "removed mDevice member and made singleton accessor."

This reverts commit 998fd5bd78639f9c1b4547feff2caa8f69706c07.