Refactor to keep config out of the db
Change config page to create app URLs
Fix query concatenation, route refactoring
Reflow generator