iOS7 support

For #42. Not easy to switch versions back and forth, but I think this will still work in iOS6. The mandatory authorization check is a nuisance for the test suite.