Added partial new auth support. Partially split up signaling and media code