Formatting, code cleanup and documentation
Moved functionality out of OnReady into OnInitialized file, updated YUI compressor version
Slight cleanup of ui.js
Fixed legend generation for when a legend table comes back blank