Reorganize web app code.