UPG-1: Clean up file structure and code organization.

Reorganized the structure of the application. I did not make improvements to the JavaScript code yet but breaking it apart and applying best practices to it is my next effort.