xcode6 version
Add registerForRemoteNotifications
Macro to switch between ios7 and ios8
add Badge and sound notification
Merge branch 'ios8'