Fixed for iOS 8

I think I fixed the things that were messing up iOS 8. The forced
disconnect right after connecting was a problem. I think there were
some things with services.h. I extended the delay before security was
required.