reorganzing app, adding spaceless middleware and debug context processor