This change adds a copyright notice and moves our site-specific bits to global constants at the top of the file. (imported from commit ccc8cf10f2d0d70c7500b12c7849406268313bae)