Cleanup.

Changed the way the global App object is defined to clean up the redundant
assignments; switched to commas last (le sigh) for the front end code.