Moved the color functions to their own .js file.
Moved key-rendering to its own .js file.
Moved serialization routines into their own .js file.