new app_global_* callbacks

add: app_gloabl_* callbacks
fix: coredump in ~calypso_main_t()
add: send/broadcast by group
remove: maininst from app scope, use app_init_option instead
remove: appinst from get_msgpack_size