Make JSLint pretty happy.
Refactoring - namespaces changed, XML comments added.
Remaining stuff related to namespaces change.
Remaining fix.