rename get_app -> app and return std::string
add octopeer_state parameter to update_peer
add octopeer_state enum
implement notifier and fix some protocol issues