Work in progress. Moving frontend to new app while doing some minor cleanups. Major cleanups will follow.