Separated out code for state, Flash, and deprecation.

Separated out some code related to 3 different areas into their own JS src files:
 1. "state.js" &larr; state variables
 2. "flash.js" &larr; generic Flash stuff (e.g. detection)
 3. "deprecated.js" &larr; all deprecated functionality