Added common middleware and common application stack (more middleware coming soon).