Added ability to set header/footer view; callbacks updated.