Remove unused code, also pre-iOS 4 only code
CB-7606 - handleOpenURL handler firing more than necessary

- plus style fixups through uncrustify