Refactor av

NOTE: now you have to call toxav_do (preferably right after tox_do) in order to handle events.

IMPORTANT: 
    - First in probably several of future av modifications (fixes)
    - Media payload is still handled in separate thread due to some issues i encountered
Use after free.