Added support for middle headers and footers for basic layout.
Demo for middle headers and footers.