Changed the d3 extern scale annotations, and cleaned up the rest of the warnings I considered most important.

Based on feedback on how to write the markup from the closure compiler group, the scale functions w/ properties are no longer classes instead they are functions w/ properties, which involves creating a dummy variable and adding the properties to it.