fix typo
only emit alert events when in foreground
correct default alert and add vibrate
add badge and sound
have badge and sound added only if actually set
add vibrate
add limited documentation for default event listeners
refactoring of the server send api