Remove protocol handling from server code
add callback logic for rtmpd