Renames some variables in simulcast.js.
Attempts to fix the resolution N/A problem.
Factors simulcast related code.