cleanup config
various cleanup
split some code from apply form into new class
add sample nginx config
update nginx sample config
improve bootstrap, move files
improve router class, inject dependencies and globals
cleanup in Router class
code style cleanup
cleanup template files
fix header image, privacy page