Sync with latest toxcore master head API

closes #30